Search code examples
javascriptmozillaactivexobject

Is there an alternative to the proprietary ActiveXObject in JavaScript


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).


Solution

  • 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/