Page 1 of 1

Webgadget script debugging problem

Posted: Fri Nov 06, 2009 7:21 pm
by utopiomania
I started on a project to roll my own webbrowser using the webgadget, but the thing throws up
some ugly script error warnings from time to time on pages that behaves fine in Chrome or IE.

It seems to debug scripts in the code, and this is a showstopper. To see what I mean, point the
webbrowser.pb example to lifehacker, for example, and it will report a script error or two.

Anyone knows how to turn this off?

Re: Webgadget script debugging problem

Posted: Fri Jan 01, 2010 6:59 pm
by utopiomania
Just found this on the codingmonkeys site. I haven't tried it yet, but the guy who received help
confirmed that it works. Thanks!

gnozal
Try something like this :

Code: Select all

Browser.IWebBrowser2=GetWindowLong_(GadgetID(#Web_Gadget),#GWL_USERDATA)
If Browser
  Browser\put_Silent(#True)
EndIf
You could also try the new #PB_Web_NavigationCallback.
ts-soft:
Small correction to gnozal code

Code: Select all

Browser.IWebBrowser2=GetWindowLongPtr_(GadgetID(#Web_Gadget),#GWL_USERDATA)
If Browser
  Browser\put_Silent(#True)
EndIf
This way, it should work on x86 and x64 applications.