[英]Javascript to enable Activex control
I want to use ActiveXObject to get some data from the client side.I am using IE 11. By default ActiveXObject is disabled in browser.So each and every time in every laptop i need to manually enable the ActiveXObject from (Tools / Internet Options / Security tab / Internet zone / Custom Level button / ActiveX controls and plug-ins section / Initialize and script ActiveX controls not marked as safe for scripting)
. 我想使用ActiveXObject从客户端获取一些数据。我使用的是IE11。默认情况下,ActiveXObject在浏览器中处于禁用状态。因此,每台笔记本电脑中的每一次每次都需要从(Tools / Internet Options / Security tab / Internet zone / Custom Level button / ActiveX controls and plug-ins section / Initialize and script ActiveX controls not marked as safe for scripting)
。 Is there any way to enable it using via javascript? 有没有办法通过javascript启用它?
I searched in internet and found that we can enable it via IObjectSafety Interface.Is that possible ? 我在互联网上搜索后发现可以通过IObjectSafety Interface启用它。 If yes how i can implement that ? 如果是的话,我该如何执行呢?
Thanks in Advance! 提前致谢!
It's better to use the XMLHttpRequest object. 最好使用XMLHttpRequest对象。 ActiveXObject is only in IE11 for legacy support . ActiveXObject仅在IE11中提供旧版支持 。
Creating an ActiveXObject on a remote server is not supported in Internet Explorer 9 standards mode, Internet Explorer 10 standards mode, Internet Explorer 11 standards mode, and Windows Store apps or later. Internet Explorer 9标准模式,Internet Explorer 10标准模式,Internet Explorer 11标准模式和Windows Store应用程序或更高版本不支持在远程服务器上创建ActiveXObject。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.