By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,508 Members | 1,856 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,508 IT Pros & Developers. It's quick & easy.

How to disable javascript in AxSHDocVw.AxWebBrowser?

P: n/a
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
Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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" <an*******@discussions.microsoft.com> wrote in message
news:24**********************************@microsof t.com...
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


Nov 16 '05 #2

P: n/a
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" <an*******@discussions.microsoft.com> wrote in message
news:24**********************************@microsof t.com...
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


Nov 16 '05 #3

P: n/a
Hey Simon

Did you come up with the fix to that problem

I too need to disable that message box.
Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.