ActiveX控件始终在我的计算机上运行-其他计算机上的行为无法预测? [英] ActiveX Control always working on my machine - unpredictable behavior on others?

查看:126
本文介绍了ActiveX控件始终在我的计算机上运行-其他计算机上的行为无法预测?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,关于我的ActiveX控件不能始终在其他计算机上的IE中运行。

I have a question about my ActiveX control not always working in IE on other machines.

上下文:我公司的内部应用程序。它被设计为一个独立的网页配置工具,用于查看我们的Web应用程序的静态自定义版本。用户可以选择他们想要查看的颜色,图像和其他设置,并且当他们单击按钮时,这些设置将以其机器上的静态模型/预览版本显示。

Context: I'm working on an internal app for my company. It is designed to be a standalone web-page config tool for viewing a static customized version of our web app. The user may select the colors, images, and other settings they would like to see, and these will be present in the static mockup/preview version on their machine when they click a button.

实现::我的javascript文件创建了一个文件系统/ activex对象,该对象实质上创建了一个临时的javascript文件,其中写入了值列表。然后,当用户预览配置时,将找到javascript文件,并将值动态加载到dom等中。自然地,此功能仅在Internet Explorer中有效,并且充其量是可疑的,但这是我实现纯零配置的唯一方法,客户端动态Web应用程序。

Implementation: my javascript file creates a filesystem/activex object that essentially creates a temporary javascript file to which a list of values are written. Then when the user previews the configuration, the javascript file is located and values are loaded dynamically into the dom, etc etc. Naturally this functionality only works in Internet Explorer and is shady at best, but is my only way of implementing a purely zero configuration, client-side dynamic webapp.

问题:当我测试脚本时,Internet Explorer两次提示我有关ActiveX控件的信息,然后说是,ActiveX功能就可以使用。我每次打开页面时都会执行此操作。但是有时候,当我将文件发送给其他人以便他们使用时,他们不会收到通知,因此无法正常工作。但是有时他们确实会收到通知,并且确实有效!我正在使用IE的默认安全设置,因此我的设置与其设置之间应该没有区别。

Problem: When I test out my script, Internet Explorer prompts me twice about ActiveX controls and I say "yes" to them and the ActiveX functions work. I do this every single time I open my page. But sometimes when I send the file to another person so they can use it, they don't get the notifications so it doesn't work. However sometimes they do get notifications and it does work! I am using default security settings for IE so there should be no difference between my settings and theirs.

这可能与我的用户权限与他们的权限有关,还是这些文件是只读文件(因为它们来自源代码控制,并且放在共享驱动器上时也变成只读文件。)还是未知的黑暗Microsoft力量超出了人类的理解范围?

Could this be related to my user permissions vs theirs, or the fact that the files are read-only (because they are coming from source control and are also being made read-only when put on the shared drive.) or unknown dark Microsoft forces beyond human comprehension?

谢谢,
Josh

Thanks, Josh

推荐答案

我相信您可能想创建一个HTA(HTML应用程序)网页。就ActiveX对象而言,编写HTA可以为您提供更多特权。从Microsoft签出此页面: http:// msdn .microsoft.com / en-us / library / ms536496(v = vs.85).aspx

I believe you may want to create an HTA (HTML Application) instead of a web page. Writing HTA's gives you more privileges as far as ActiveX objects are concerned. Check out this page from Microsoft: http://msdn.microsoft.com/en-us/library/ms536496(v=vs.85).aspx.

我想回答有关特权的问题您的某些同事的IE设置可能会阻止网页使用ActiveX对象。您的设置可能会使得每当要创建ActiveX对象时都会提示您。

To answer your question about privileges, I believe that some of your coworkers' IE settings probably prevent web pages from using ActiveX objects. Your settings may be such that you are prompted whenever ActiveX object are about to be created.

这篇关于ActiveX控件始终在我的计算机上运行-其他计算机上的行为无法预测?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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