Solved

VB6, WebBrowser control, JavaScript, and security levels

Posted on 2003-12-01
2
544 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…

912 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

15 Experts available now in Live!

Get 1:1 Help Now