Solved

TWebBrowser problem

Posted on 2006-06-28
11
1,225 Views
Last Modified: 2008-01-09
Hi,
I've tried navigate like this
  WebBrowser1.Navigate('http://gospodarka.gazeta.pl/gospodarka/1,33181,3446966.html');

The displayed page is incorrect.
The same address entered in regular IE gives proper results.

What can I do to navigate properly in TWebBrowser.

I'm using D7 and WinXP

Regards
0
Comment
Question by:mokule
  • 4
  • 4
  • 2
  • +1
11 Comments
 
LVL 14

Expert Comment

by:Pierre Cornelius
ID: 17000320
What is incorrect? Elaborate.

I tested on my side (also D7 and WinXP) and the loaded page looks the same as on IE.
0
 
LVL 17

Author Comment

by:mokule
ID: 17000620
In webbrowser I've got only top of the page displayed, to the line
  Gospodarka   Firma   Giełda   Waluty   Pieniądze   Centrum Finansowe
Nearly entire page is empty. You can see the difference without any doubt.

Moreover an exception 'invalid floating point operation' is thrown frequently but not always.
 
 
0
 
LVL 26

Accepted Solution

by:
Russell Libby earned 500 total points
ID: 17000965
Mokule,

I am seeing the same results. Try adding the following into the formcreate/application startup, as this should correct your problem (it does for me). I have run into this problem before with web sites (usually those that use javascript/jscript) that raise an untrapped floating point error that gets pushed back up to the application.


  Set8087CW($133F);


Let me know how it goes,
Russell
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 17

Author Comment

by:mokule
ID: 17001277
rlibby, it's much better, but how to prevent warnings like generated by

http://wiadomosci.gazeta.pl/wiadomosci/1,53600,3447843.html
0
 
LVL 9

Expert Comment

by:ginsonic
ID: 17001552
I suggest to replace the TWebBrowser with EmbeddedWB. Is a better version for TWebBrowser and is freeware.

http://www.bsalsa.com/downloads.html
0
 
LVL 9

Expert Comment

by:ginsonic
ID: 17001642
have a property EmbeddedWB1.DownloadOptions := EmbeddedWB1.DownloadOptions + [DLCTL_SILENT];
0
 
LVL 9

Expert Comment

by:ginsonic
ID: 17001659
I just tested all pages and work perfect on my browser maded with EmbeddedWB.
0
 
LVL 17

Author Comment

by:mokule
ID: 17001717
ok. never mind my last question. It should be Silent

ginsonic, sorry.
This component fails exactly in the same manner like twebbroser.
At least in provided exe demo.
0
 
LVL 17

Author Comment

by:mokule
ID: 17001744
ginsonic,
I've downloaded EmbeddedWBDemo and it fails to navigate
http://wiadomosci.gazeta.pl/wiadomosci/1,53600,3448584.html
0
 
LVL 9

Expert Comment

by:ginsonic
ID: 17001783
?? I use it in my own browser and work perfect. Never mind. But is still better like WebBrowser :)
0
 
LVL 26

Expert Comment

by:Russell Libby
ID: 17003042
Just an FYI....

The FP exception will not occur for all systems, as the system unit does some checking as to what the default 8087 control word is going to be set to doing program startup.

For those systems where the error does occur, it does not matter if you use TWebBrowser or the wrapper provided by
EmbeddedWB. Notice I said "wrapper",  not control. Both browser wrappers use the same underlying COM interface, which is the IWebBrowser(2) interface exposed from IE.

While the EmbeddedWB *is* a better wrapper than the one provided by TWebBrowser, it is still a wrapper over the same interface, and thus is succeptible to the FP error described above.

Regards,
Russell
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question