IE内部网区域中的ActiveX控件 - 没有提示阻止? [英] ActiveX control in IE intranet zone - blocked without a prompt?

查看:135
本文介绍了IE内部网区域中的ActiveX控件 - 没有提示阻止?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的公司编写一个内部网页,需要使用嵌入式DLL(COM)。 dll已在所有客户端计算机上注册,因此无需从页面下载,只需运行即可。

I'm writing an intranet page for my company that requires the use of an embedded dll (COM). The dll is registered on all clients computers so it doesn't need to be downloaded from the page, it just needs to run.

我尝试使用以下代码嵌入控件:

I've tried using the following code to embed the control:

var newObj = new ActiveXObject("servername.classname");

这在本地测试时有效,但是从Intranet中,对象无法使用js错误进行实例化自动化服务器无法创建对象。我怀疑这是因为IE(7)默认在Intranet区域中阻止ActiveX控件。我也尝试过使用< object> 标签而没有运气。

And this works when testing locally, but from the intranet the object fails to instantiate with the js error "automation server can't create object". I suspect this is because IE(7) blocks ActiveX controls by default in the intranet zone. I've also tried using the <object> tag with no luck.

我有一个截止日期这完成了,IT部门不太可能在此之前改变公司的安全设置,所以除非它非常直接地让他们这样做,否则不是一个选择。

I have a deadline to get this finished and it's unlikely that the IT dept will get around to changing the company security settings before then, so unless its very straightforward for them to do it's not really an option.

所以我的问题是:是否有任何可能的解决方法允许我嵌入控件,以便至少提示用户而不是静默阻止控件,而不更改IE中的默认安全设置?

公司几乎每个人都使用某种版本的IE(最多7个),所以它只需要为此工作。

Almost everyone in the company uses some version of IE (up to 7), so it only needs to work for this.

所有帮助和评论都表示赞赏。

All help and comments appreciated.

谢谢。

更新
如果这绝对不是'我可以在这个问题。我仍然宁愿做客户端,因为控件有一些不错的用户界面。

Update: If this absolutely isn't possible, I'm looking at using the dll from a script on the server in this question. I'd still rather do it client side though because the control has some nice user interfaces available.

推荐答案

如果你用它嵌入它一个< object> 标记它应该提示你不管;然后你可以通过object标签对它进行调用。可能有用的另一个技巧是:将<! - 保存自url =(0013)about:internet - > 作为你的html文件的第一行;我不知道这是否适用于Intranet区域,但是来自localhost会导致页面被视为互联网页面。

if you embed it with an <object> tag it should prompt you regardless; you could then make calls on it through the object tag. another trick which may work is to put: <!-- saved from url=(0013)about:internet --> as the first line of your html file; I don't know if this will work on the intranet zone, but from localhost that will cause the page to be treated as though it were an internet page.

我有使用 FireBreath 插件(充当activex控件,可以按照你描述的方式调用)并且从未遇到过问题喜欢这个。祝你好运!

I have used FireBreath plugins (which act as activex controls and can be called in the way you describe) and have never had an issue like this. Good luck!

这篇关于IE内部网区域中的ActiveX控件 - 没有提示阻止?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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