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 ther开发者_JS百科e 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).
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/
Depending on what you want to achieve, a lot of the things that you can do with ActiveX can be done with Google Gears
精彩评论