By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,442 Members | 1,251 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,442 IT Pros & Developers. It's quick & easy.

Persisting XML DOM object using Javascript

P: 3
Hi,

Is there any way to persist XML DOM using Javascript?

The following code doesn't see to work
Expand|Select|Wrap|Line Numbers
  1. if(window.ActiveXObject){
  2.       avXMLDoc=new ActiveXObject("Microsoft.XMLDOM");
  3.       avXMLDoc.async="false";
  4.       avXMLDoc.load("Formats.xml");
  5.       getData();
  6.   }
  7. function getData(){
  8.  avXMLDoc.save("XMLDataFile.xml");
  9. }
  10.  
Any help would be appreciated. Thanks in advance.

Seejay
Nov 8 '07 #1
Share this Question
Share on Google+
3 Replies


acoder
Expert Mod 15k+
P: 16,027
Not with standard JavaScript unless you store information in cookies.

You could save a file to the client-side with ActiveX.
Nov 8 '07 #2

P: 3
Not with standard JavaScript unless you store information in cookies.

You could save a file to the client-side with ActiveX.
Thanks. I used ActiveX and was able to save the file on the client side file system. I had to mess around with the ActiveX settings in the IE to get this to work.
Nov 9 '07 #3

acoder
Expert Mod 15k+
P: 16,027
Care to post your working code?
Nov 9 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.