ActiveXObject("MSXML2.DOMDocument.4.0") error

K

K. Wilder

I've made an ASP form page that is executed via a
Javascript function.

There's a javascript function that builds an XML object
with the form values. But in some browers it seems to
fail on the line that reads:

var objXML = new ActiveXObject("Msxml2.DOMDocument.4.0");

It's works fine in my IE 5.0, 5.5 and 6.0 browsers. Any
ideas why it fails for some users?

Thanks,

King Wilder
 
D

Dan Brussee

I've made an ASP form page that is executed via a
Javascript function.

There's a javascript function that builds an XML object
with the form values. But in some browers it seems to
fail on the line that reads:

var objXML = new ActiveXObject("Msxml2.DOMDocument.4.0");

It's works fine in my IE 5.0, 5.5 and 6.0 browsers. Any
ideas why it fails for some users?

You are most likely "up to date" on patches, etc. I dont think version
4.0 is guaranteed to be on a machine just because IE is on it. You
"may" be able to rely on simply MSXML.DOMDocument (no version
specified), but be sure your properties / methods match with the lower
versions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top