[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

loading dom

Subject: loading dom
From: "Prasad Akella" <avlnprasad@xxxxxx>
Date: Thu, 07 Apr 2005 18:40:28 +0200
javascript loading
Hello,

I have an xslt which transforms xml into xhtml controls.  I need to take the data entered from the user in those controls and save the xml tree again as there is some appending to the original data going on. For this i am calling a javascript from one of my xhtml controls. But the problem is i am not able to do anything. Is it a problem with namespace i am not sure. 

var xmlDoc = new ActiveXObject("MICROSOFT.FreeThreadedXMLDOM");          
  function save(){
                        xmlDoc.async="false";
                        xmlDoc.onreadystatechange=verify;
                        xmlDoc.load(Server.MapPath('QP_Sample.xml'));
                        var xmlObj=xmlDoc.documentElement;
                        alert(xmlObj)
                        xmlDoc.save(Server.MapPath('AP_Sample.xml')); 
                        return true;
                        }          
This above function is written in a javascript which is written in my CData section of the xsl file. I am calling the function in a template which is writing the xhtml controls as

 <xhtml:input type="button" name="submit" value="Finish Exam" onclick="save()"/>   

can someone please tell me what to do.

with kind regards,
Prasad
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193

Current Thread
  • loading dom
    • Prasad Akella - 7 Apr 2005 16:40:59 -0000 <=
      • <Possible follow-ups>
      • cknell - 7 Apr 2005 17:57:02 -0000

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.