Is there an alternative to the proprietary ActiveXObject in JavaScript

2.4k Views Asked by At

Is there a general alternative to IE's proprietary ActiveXObject in JavaScript. Lacking such a general alternative, is there a method to use COM Objects with Mozilla?

The reason for the question is that I'd like to have an equivalent to

var conObj = new ActiveXObject('ADODB.Connection');

with mozilla (for local use).

2

There are 2 best solutions below

1
On BEST ANSWER

There is no equivalent to COM for Mozilla that's available to non plugin code.
Plugins can use XPCOM.

If you want something like ADODB.Connection, take a look at the new HTML5 local storage APIs. There's a good tutorial at http://paperkilledrock.com/2010/05/html5-localstorage-part-one/

2
On

Depending on what you want to achieve, a lot of the things that you can do with ActiveX can be done with Google Gears