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
596 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
Comment Utility
The website has also been added to my trusted site list.
0
 

Accepted Solution

by:
solobutt earned 0 total points
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

744 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now