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?
Webgadget script debugging problem
- utopiomania
- Addict
- Posts: 1655
- Joined: Tue May 10, 2005 10:00 pm
- Location: Norway
- utopiomania
- Addict
- Posts: 1655
- Joined: Tue May 10, 2005 10:00 pm
- Location: Norway
Re: Webgadget script debugging problem
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
confirmed that it works. Thanks!
gnozal
ts-soft:Try something like this :You could also try the new #PB_Web_NavigationCallback.Code: Select all
Browser.IWebBrowser2=GetWindowLong_(GadgetID(#Web_Gadget),#GWL_USERDATA) If Browser Browser\put_Silent(#True) EndIf
Small correction to gnozal codeThis way, it should work on x86 and x64 applications.Code: Select all
Browser.IWebBrowser2=GetWindowLongPtr_(GadgetID(#Web_Gadget),#GWL_USERDATA) If Browser Browser\put_Silent(#True) EndIf