Solved

VB6, WebBrowser control, JavaScript, and security levels

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

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