Web Gadget Won't Load Page Fully

Just starting out? Need help? Post your questions and find answers here.
CalamityJames
User
User
Posts: 81
Joined: Sat Mar 13, 2010 4:50 pm

Web Gadget Won't Load Page Fully

Post 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

User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: Web Gadget Won't Load Page Fully

Post by luis »

It seems to work here (Win7 / IE8).

What are you missing ?
"Have you tried turning it off and on again ?"
CalamityJames
User
User
Posts: 81
Joined: Sat Mar 13, 2010 4:50 pm

Re: Web Gadget Won't Load Page Fully

Post 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!
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: Web Gadget Won't Load Page Fully

Post 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.
"Have you tried turning it off and on again ?"
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Web Gadget Won't Load Page Fully

Post 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.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Lush
User
User
Posts: 20
Joined: Sat Feb 12, 2011 5:58 pm
Location: France

Re: Web Gadget Won't Load Page Fully

Post 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.
CalamityJames
User
User
Posts: 81
Joined: Sat Mar 13, 2010 4:50 pm

Re: Web Gadget Won't Load Page Fully

Post 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!
Post Reply