Solved

VB6, WebBrowser control, JavaScript, and security levels

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Saving history changes to sub form 4 56
Protecting vb6 & .Net code Obfuscation 18 206
Zip Folders Using Chilkat Routines 1 85
adding "ungroup sheets" to existing vbs code 5 73
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

738 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