473,386 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 17194
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

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

Similar topics

2
by: Steven Kobes | last post by:
I have an HTML file containing some JScript that creates a "WScript.Shell" ActiveX object. When it loads, Internet Explorer says: "An ActiveX control on this page might be unsafe to interact...
11
by: Dave | last post by:
I have this sample HTML code: <html> <head> <script type="text/javascript"> var WinHttpReq = new ActiveXObject("WinHttp.WinHttpRequest.5.1"); </script> </head>
1
by: Anand Kale | last post by:
How to have ActiveX control called from Web Form in ASP.Net ? ActiveX control is written using VC++/MFC/ATL-COM. Also kindly answer following issues, 1. Also how to take care of issues about...
1
by: fniles | last post by:
I have an ActiveX control in my ASP page that has not been signed yet, so currently just for testing I set the Security for Intranet to "Low". When I run the ASP page on my machine (the IIS is in...
4
by: fniles | last post by:
I have an ActiveX control in my web page that I tried to access using intranet. I have implemented IObjectSafety in the ActiveX control, and when I created the CAB file using VB Pakage and...
2
by: =?Utf-8?B?Sm9obiBG?= | last post by:
Hello All, I have a question about using an ActiveX control with a Windows Servce in C#. I believe it is not possible to properly setup an ActiveX control in a windows service as the particular...
4
by: Mr Seth T | last post by:
Hey, I have spent several days trying to find out how to do something, and i don't know if I am blind or what, but I can not find it. I am developing a web app and I need it to run an activex...
2
by: PriyaPadma | last post by:
Hi All, Help Need. We are using third party control. We didnt receieve any codebehind and dll. Basically website developed in AJAX. Here is my problem. I need to populate windows login username in a...
0
by: frkem | last post by:
After virus infection (Sohanad 32) an I deleted all infected files my windows operating system is not working. Windows media player, search, help and support icon by double clicking it one message...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.