How to disable javascript in AxSHDocVw.AxWebBrowser?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello

I use AxSHDocVw.AxWebBrowser in a windows application. But sometimes the url I browsed in AxSHDocVw.AxWebBrowser contains error caused by javascript. Can I prevent javascript from running in AxSHDocVw.AxWebBrowser

Thanks
Simon CJC
 
Hello,

I've seen on the newsgroups that one should implement an interface called
something like ISecurityProperty and feed the reference to an object
implementing this interface to the WebBroser control instance.
The trick is that you provide your own settings for parameters like "Enabe
JavaScript" through that interface implementation.

However, I was unable to find any documentation on this in the MSDN :-(

Simon CJC said:
Hello,

I use AxSHDocVw.AxWebBrowser in a windows application. But sometimes the
url I browsed in AxSHDocVw.AxWebBrowser contains error caused by javascript.
Can I prevent javascript from running in AxSHDocVw.AxWebBrowser?
 
Aha, it seems I have been able to find some docs. Please refer to the
following topics:

"About IObject Safety Extensions for Internet Explorer"
"IObjectSafety interface"

Simon CJC said:
Hello,

I use AxSHDocVw.AxWebBrowser in a windows application. But sometimes the
url I browsed in AxSHDocVw.AxWebBrowser contains error caused by javascript.
Can I prevent javascript from running in AxSHDocVw.AxWebBrowser?
 
Hey Simon

Did you come up with the fix to that problem

I too need to disable that message box.
 
Back
Top