ActiveXObject(“Msxml2.DOMDocument.3.0”) throw exception

nutron

New Member
Please help with this, it's should be an easy task, but it drive me crazy!!I've this little piece of code:\[code\]var doc;try { if (document.implementation && document.implementation.createDocument) { doc = document.implementation.createDocument(null, null, null); } else { doc = new ActiveXObject("Msxml2.DOMDocument.3.0"); doc.async = false; } } catch (ex) { jabberwerx.util.debug.log("could not create XML Document: " + ex); throw ex; } return doc;\[/code\]The problem is that on IE the \[code\]doc = new ActiveXObject("Msxml2.DOMDocument.3.0");\[/code\]throws an exception. Seems that it works if I active the "Unsigned ActiveX script" into "Internet Options" panel in IE.I really need that this piece of code work with the default InternetExplorer settings.There is another way to have a DOMXmlObject in IE?!?!?
 
Back
Top