473,372 Members | 1,653 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,372 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 17190
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.