封装JavaScript的ActiveX [英] Encapsulate ActiveX for JavaScript

查看:169
本文介绍了封装JavaScript的ActiveX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图开发一个可以使用特定邮件程序(lotus-notes)的网站,但是为了做到这一点,我需要使用通常使用ActiveXObject()对象创建的应用程序创建Session。问题是,我不会成为网站的最终用户,我不想创建一个不友好的网站,总是要求用户添加扩展,以使网站功能正常工作。



我正在尽最大努力找到ActivateXObject()的使用方法,以最好的方式封装应用程序,所以有什么样的插件可以通过JavaScript到我的网站,以便使用ActiveXObject()或任何等效的函数?

解决方案

不,没有。要创建一个COM对象(这就是 ActiveXObject 所做的),你需要使用一个支持ActiveX(旧IE)或浏览器的浏览器, /或写一个旧式(NPAPI)插件。

所有主流浏览器已经停止或正在积极(无双关)停止对NPAPI插件机制的支持,因为例如,我认为SilverLight插件可能已经能够创建COM对象,但是作为一个NPAPI插件实现,它是迅速消失(并在2012年被微软公布,他们支持SilverLight 5至2021年,但这并不能帮到你)。

没有替代技术可以使用标准浏览器的网页中运行的JavaScript代码创建COM对象。


I'm trying to develop an website that can use a specific mailing program (lotus-notes), but to do so, I need to create a Session with the application that usually was created using an ActiveXObject() object. The problem is that I won't be the end user of the website, and I do not want to create a website not user friendly, always asking for the user to add extensions in order to make the website functionalities work.

I am doing my best to find a workaround to the use of ActivateXObject(), encapsulating the application in the best way I can, so is there any kind of plugin that I can add through JavaScript to my website in order to use ActiveXObject() or any equivalent function?

解决方案

No, there isn't. To create a COM object (which is what ActiveXObject did), you'd need to use a browser with native support for ActiveX (old IE) or a browser you could use and/or write an old-style (NPAPI) "plugin" on.

All major browsers have discontinued or are actively (no pun) discontinuing support for the NPAPI plugin mechanism because of the security issues around it.

For instance, I think the SilverLight plugin might have been able to create COM objects, but as it's implemented as an NPAPI plugin, it is rapidly disappearing (and was EOL'd by Microsoft in 2012; they support SilverLight 5 through 2021, but that doesn't help you).

There is no replacement technology that can create COM objects from JavaScript code running in a web page in a standard browser at this time.

这篇关于封装JavaScript的ActiveX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆