Page 1 of 1
Web Gadget Won't Load Page Fully
Posted: Wed Feb 29, 2012 3:27 pm
by CalamityJames
Can anyone suggest why the following code won't load the url fully? I am using PB 4.60 under Windows XP and Internet Explorer 8.0.6001.18702. Internet Explorer loads the page without difficulty. There is no reason to suppose it is a Purebasic problem because I have the same problem under Visual Basic 6 using the Web Browser control, but I already know there is a lot of expertise out there...
Code: Select all
If OpenWindow(0, 0, 0, 800, 600, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebGadget(0, 10, 10, 780, 580, "http://www.wordreference.com/fren/créatif")
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
Re: Web Gadget Won't Load Page Fully
Posted: Wed Feb 29, 2012 3:42 pm
by luis
It seems to work here (Win7 / IE8).
What are you missing ?
Re: Web Gadget Won't Load Page Fully
Posted: Wed Feb 29, 2012 3:59 pm
by CalamityJames
Almost everything except the banner advert across the top. I've tried it on another Windows XP / IE8 combination with the same result. I've also tried it under Windows XP and IE6 and it worked properly!
Re: Web Gadget Won't Load Page Fully
Posted: Wed Feb 29, 2012 4:20 pm
by luis
I cannot reproduce the problem (and I don't have your same configuration of OS/browser) so I don't know how to investigate it, I'm sorry.
I understand with IE 8 standalone works, but nevertheless you could try to play with the internet settings in the control panel and see if something there make a difference.
You could also check if that happens only with that page or with any page.
Try for example a page without external contents (all the resources from the same domain).
Or even a local page on your computer or a local http server in your network.
Also try to see if the page generate some javascript error.
Hope someone else will be able to help you.
Re: Web Gadget Won't Load Page Fully
Posted: Wed Feb 29, 2012 4:28 pm
by IdeasVacuum
PB4.60, WinXP 32bit SP3+
Works perfectly here, but there is an advertisement banner just under the title banner, that is not displayed by the web gadget or Internet Explorer (8.0.6001), but FireFox(10.0.2) does display it (the adverts are cycled so probably some good, some bad).
So, I think it's the website that is at fault. If you look at the source, there is a note that rather suggests they have been having issues.
Re: Web Gadget Won't Load Page Fully
Posted: Wed Feb 29, 2012 5:45 pm
by Lush
Tried it in PureBasic and on Chrome, Safari, Firefox and IE9 (in all IE7, IE8, IE9 and compatibility modes) on Windows 7.
Wouldn't display any banner at times (like 2/10 times) in every browser.
Also the banner is not part of the page, it's inside an iframe. So I think it's the website that's at fault too.
Although... if it happens every time you run your program, maybe there's some cookie or javascript issue going on.
Re: Web Gadget Won't Load Page Fully
Posted: Wed Feb 29, 2012 6:49 pm
by CalamityJames
Thanks to all those who commented. I have run the Pure Basic program several times under the Window XP / IE 8 combination since my original post, and on one occasion I got the dictionary definition without the advertising banner, so I, too, am inclined to think it is a website problem. There were no problems before their recent redesign. And I don't mind getting the definition without the banner!