'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 defined.
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
Solution 1:[1]
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.
Solution 2:[2]
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...
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Reporter |
Solution 2 | CodeMouse92 |