?
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
Medium Priority
?
609 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

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

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
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.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

777 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