Solved

Using Javascript to pass data to an activex control in a classic asp page is blocked by IE

Posted on 2009-03-30
2
599 Views
Last Modified: 2012-06-27
I have a VB6 ActiveX control embedded onto a Classic ASP web page. Once the ActiveX has been loaded JavaScript is used to pass additional information to the control at different intervals of time. When an attempt is made to pass the information i receive the following message:  "Internet Explorer has blocked this site from using an ActiveX control in an unsafe manner".

The ActiveX is digitally signed and has been marked as safe for scripting.

I have seen variations of this issue arise on other posts but no-one seems to have a programmatic solution to the problem. I believe the issue also only arise with IE7+ and not IE6.

I know the issue lies with the Javascript as I have commented out the script which interacts with the activex control and the issue no longer exists.

One solution but not ideal is to change the IE security setting from disabled to either prompt or enabled for "Initialize and script ActiveX controls not marked as safe for scripting". This solution is not ideal as I would not expect every user who runs the ActiveX to perform this action.

I have not listed any code snippets as the code works when the action in the above paragraph is performed therefore the issue can not be within the code as such.
0
Comment
Question by:solobutt
  • 2
2 Comments
 

Author Comment

by:solobutt
ID: 24020562
The website has also been added to my trusted site list.
0
 

Accepted Solution

by:
solobutt earned 0 total points
ID: 24039198
I have now found the solution and this could be useful to someone who creates their own CAB files.

View:
http://support.microsoft.com/kb/221541

The issue lies with not having the the following entry in the .inf file before creating the CAB file

[AddToRegistry]
HKLM,"SOFTWARE\Classes\CLSID\{04CD5348-D028-11D2-82A6-00C04FB9D847}\Implemented Categories\{7DD95802-9882-11CF-9FA9-00AA006C42C4}"
HKLM,"SOFTWARE\Classes\CLSID\{04CD5348-D028-11D2-82A6-00C04FB9D847}\Implemented Categories\{7DD95801-9882-11CF-9FA9-00AA006C42C4}"


0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question