PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Steven Hua on September 06, 2012, 11:39:57 AM

Title: Webbrowse disable message dialog problem
Post by: Steven Hua on September 06, 2012, 11:39:57 AM
Hello,
I have a problem with the WebBrowser disable webpage error or javascript error message dialog,
FF3.6 no see WebBrowser Control code, how to disable message dialog? Set  "Silent" is not good, through the IOleCommandTarget to how to achieve it?
Title: Re: Webbrowse disable message dialog problem
Post by: José Roca on September 06, 2012, 04:49:01 PM
You have to turn off the Scripting Debugger in Internet Explorer. To turn off the Scripting Debugger in Internet Explorer, on the Tools menu, click Internet Options. On the Advanced tab, select the Disable script debugging check box, and then click OK.
Title: Re: Webbrowse disable message dialog problem
Post by: Steven Hua on September 07, 2012, 08:11:21 AM
thank you ! 
Does not setting in Internet Explorer ,Using PB code?
I find the article,  convert PB code is failed,as follows,

How to handle script errors as a WebBrowser control host
http://support.microsoft.com/default.aspx?scid=kb;en-us;261003

how to  converted into PB code ?

thanks
Title: Re: Webbrowse disable message dialog problem
Post by: José Roca on September 07, 2012, 11:03:25 AM
You can't. This is something that has to be implemented in the OLE container. You can disable execution of scripts by checking the DLCTL_NOSCRIPTS option of the Ambient properties of the control.
Title: Re: Webbrowse disable message dialog problem
Post by: Steven Hua on September 10, 2012, 12:18:32 PM
thanks