开发者

Is there an alternative to the proprietary ActiveXObject in JavaScript

开发者 https://www.devze.com 2023-02-11 07:46 出处:网络
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?

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

0

精彩评论

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