0

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

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.

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.

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.

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?

Thanks, Josh

4

1 回答 1

0

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

为了回答您关于权限的问题,我相信您的一些同事的 IE 设置可能会阻止网页使用 ActiveX 对象。您的设置可能会在即将创建 ActiveX 对象时提示您。

于 2011-02-08T17:29:44.063 回答