jr********@hotmail.com wrote:
I want to use javascript to manipulate XML files.
The following code works in IE but it won't work in Mozilla.
var xml = new ActiveXObject("Microsoft.XMLDOM");
Any way to make it work in cross browsers?
please advise. thanks!!
Hi
XMLHttpRequest is what you are after.
------------ SAMPLE CODE -------------
var xml;
try { xml = new XMLHttpRequest();}
catch (e) { xml = new ActiveXObject("Microsoft.XMLHTTP"); }
--------------------------------------
With these you can use POST and GET to retrive XML from a server.
HTH's
Andy