Javascript and DOM programming are off-topic for this list. However, as I have
done a good deal of building and saving XML documents using Javascript, I may
be able to help you off-list. If you are interested, you can contact me at the
email address below.
You will have to be more explicit about the nature and details of your problem.
"i am not able to do anything" doesn't really tell anyone enough to diagnose
your problem.
--
Charles Knell
cknell(_at_)onebox(_dot_)com - email
-----Original Message-----
From: Prasad Akella <avlnprasad(_at_)web(_dot_)de>
Sent: Thu, 07 Apr 2005 18:40:28 +0200
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] loading dom
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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--