IE Error using active X object

柔情痞子 提交于 2019-12-12 01:33:22

问题


Well, I'm having trouble on creating an ActiveXObject! It works nicely on IE7 but on IE8+ it crashes the application! I'm trying to do the following:

var oXml = new ActiveXObject('Microsoft.XMLDOM');
oXml.async = false;
oXml.loadXML(document.XMLDocument.xml);

When I try to loadXML by document.XMLDocument.xml the browser says that

document.XMLDocument.xml is null or not an Object!! 

I already tried many things, like this: http://dean.edwards.name/weblog/2006/04/easy-xml/ and lot's of stuff, but couldn't make it work!! Help!!

来源:https://stackoverflow.com/questions/9709172/ie-error-using-active-x-object

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!