469,628 Members | 1,012 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,628 developers. It's quick & easy.

MS XMLDOM save method

I am trying to use M$'s XMLDOM's save method but it is doing absolutely
nothing.

xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
xmlDoc.load("bestscores.xml");
xmlDoc.save('123.xml');

(The code is in Javascript.)
I've tried relative paths/absolute paths/all sorts of permutations, but
nothing happens.
Has anyone else faced this problem? I hope i'm not missing anything.

Thanks

Apr 4 '06 #1
1 3962


ku******@gmail.com wrote:
I am trying to use M$'s XMLDOM's save method but it is doing absolutely
nothing.

xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
xmlDoc.load("bestscores.xml");
xmlDoc.save('123.xml');

(The code is in Javascript.)


Where do you try to run that script code? Inside of IE save does not
work, you can use it in other host applications like HTAs (HTML
applications), Windows Script Host, ASP however.

See the remarks section in
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/0749c4f1-61fe-4d28-9d29-cd93a76f5475.asp>
where it clearly says that save(string) "is not intended for use from a
secure client, such as Microsoft Internet Explorer."

--

Martin Honnen
http://JavaScript.FAQTs.com/
Apr 4 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by George Jewell | last post: by
3 posts views Thread by reclusive monkey | last post: by
3 posts views Thread by Robert Zurer | last post: by
1 post views Thread by Dave Romig | last post: by
2 posts views Thread by Trip | last post: by
5 posts views Thread by Dikkuuhh | last post: by
2 posts views Thread by =?Utf-8?B?YzY3NjIyOA==?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.