Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
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
?
610 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
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:
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

610 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