Solved

VB6, WebBrowser control, JavaScript, and security levels

Posted on 2003-12-01
2
538 Views
Last Modified: 2013-12-25
I am working on a proof-of-concept that involves using the WebBrowser control (SHDOCVW.DLL) to view an html file containing some JavaScript.  If I Disable "Active Scripting" under my Internet Explorer Security settings, expectedly, my VB shows the html code but halts JavaScript execution.

My question: Is JavaScript embedded in a WebBrowser control feasible for a commercial application?  My fear is that because the WebBrowser control appears to inherit IE security settings, the JavaScript execution will be a hit-or-miss dependent upon how each personal computer is configured.  Is it possible to override these settings?  If not, then I cannot utilize this technique.  Could someone please elaborate on this topic?

Thanks!
0
Comment
Question by:afterthought
2 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 195 total points
ID: 9858363
I am not sure, but this might help:

SAMPLE: Secumgr.exe Overrides Security Manager for WebBrowser Host
http://support.microsoft.com/default.aspx?scid=kb;en-us;246227
0
 

Author Comment

by:afterthought
ID: 9860522
Not knowing C++, I had a difficult time following the code and really understanding what was taking place in the specified link.  This is not to say the answer won't be helpful to others.  I do believe this answers my question though in that there doesn't appear to be a simple way of overriding IE security settings.  I appreciate the assistance!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

707 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

18 Experts available now in Live!

Get 1:1 Help Now