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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
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.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

739 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