Skip to main content
GameDev.net gamedev.net
🔒 Locked

[.net] AxWebBrowser - suppressing script errors

Started by Martee Oct 18, 2005 at 1:34 PM 1 replies 4.6k views
Original Post
Martee
Martee
Hi, I have a UserControl that hosts an AxWebBrowser. Everything is working peachy, except for one little problem: If 'Disable Script Debugging' is unchecked in Internet Explorer's Advanced Options, and the page being viewed contains a script error, a JIT debugger error gets thrown. I can't find any way of hiding the error dialog or preventing it from happening. Setting the browser's Silent property to true doesn't work. Adding an error handler as described in this newsgroup thread doesn't work. The method described in this MSKB article might be perfect, except that it specifically doesn't work if Disable Script Debugging is unchecked. Any ideas? I'm pulling my hair out on this one.
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
Martee
Martee
Problem solved, based on the method described in Q317024. The 'solution' involves directly injecting a &#106avascript error handler into the document. *sigh*.
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.