Solved

TWebBrowser problem

Posted on 2006-06-28
11
1,201 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 17

Author Comment

by:mokule
Comment Utility
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
Comment Utility
I suggest to replace the TWebBrowser with EmbeddedWB. Is a better version for TWebBrowser and is freeware.

http://www.bsalsa.com/downloads.html
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 9

Expert Comment

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

Expert Comment

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

Author Comment

by:mokule
Comment Utility
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
Comment Utility
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
Comment Utility
?? 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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now