469,320 Members | 2,192 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,320 developers. It's quick & easy.

An ActiveX control might be unsafe to interact with other parts of the page. Do you w

I am writing to registry using javascript.

Expand|Select|Wrap|Line Numbers
  1. var wsh = new ActiveXObject("WScript.Shell");
  2. var key = "HKLM\\Software\\Neos\\2.0\\LightMode\\my-script";
  3. wsh.RegWrite (key, 1999, "REG_SZ");
when i run this javascript code in my HTML page the following warning message appears
An ActiveX control might be unsafe to interact with other parts of the page. Do you want to allow this interaction?

I want to remove this message.

Any Help?

Thanks
Feb 22 '08 #1
8 16922
acoder
16,027 Expert Mod 8TB
You will have to change the settings in your IE browser to allow scripts to run without prompting. Only do this if you are sure that it's not unsafe and only for trusted websites.
Feb 22 '08 #2
I've changed the following IE settings but still the Message is appearing.

Tools>>Internet Options...
Security Tab
Local Intranet - Cutom Level...
ActiveX controls and plug-ins
Automatic prompting for ActiveX controls (Enable)
Binary and script behaviours (Enable)
Download signed ActiveX controls (Enable)
Download unsigned ActiveX controls (Enable)
Initialize and script ActiveX controls not marked as safe (Enable)
RUN ActiveX controls and plug-ins (Enable)
Script ActiveX controls marked safe for scripting (Enable)

Any other suggestions??

thanks
Feb 22 '08 #3
acoder
16,027 Expert Mod 8TB
I think you may want to disable automatic prompting.
Feb 22 '08 #4
I disabled automatic prompting and still does not work!
Feb 22 '08 #5
rnd me
427 Expert 256MB
I disabled automatic prompting and still does not work!

it will always prompt for registry edit outside of trusted or local zones.
Feb 22 '08 #6
No other choice??????
I dont want to create an IIS, so i dont have trusted sites!!!
Feb 22 '08 #7
@sebouh181

thanx for these postes.
i have a VB6 project. in one form i use microsoft internet control activex (IE frame) and this object navigae "test.html" contain javascript fso script.
i need disable this message with VB6 code.
plz suggest a solution for automaticaly disable with VB6
Apr 7 '09 #8
acoder
16,027 Expert Mod 8TB
If you want a solution in VB6, you might have better luck in the VB forum.

If you make sure that it's in the trusted zone/local, you should be able to avoid this message with appropriate settings.
Apr 7 '09 #9

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Steven Kobes | last post: by
1 post views Thread by Anand Kale | last post: by
1 post views Thread by fniles | last post: by
2 posts views Thread by =?Utf-8?B?Sm9obiBG?= | last post: by
4 posts views Thread by Mr Seth T | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.