开发者

Uncaught Reference Error: Activexobject is not defined

I am using the activexobject in my project it works fine in IE. I know this is the microsoft control. I want to run the project in Mozila and Chrome but it showing the error as Activexobject is not defi开发者_高级运维ned.

var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");


FireFox and Chrome doesn't support any ActiveX objects by default, so it is no wonder why you get this error message. For FireFox browser there is a way, but not recommended. See here.

What do you want to aproach? Tell us more and / or show us source code.


Okay, yeah, a nifty little caveat of this method is that it only works on IE. (And unlike what the dude in the tutorial I posted in my comment above said, it is NOT XML's fault. It's ActiveX.)

Here's a comparison of three methods. I'm going to try the third to solve my XML reading problem...

http://www.steveborn.com/codenotes/LoadingXML.htm

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜