Default browser revisited
- From: "Tom de Neef" <tdeneef@xxxxxxxx>
- Date: Tue, 6 Jun 2006 21:29:38 +0200
A few weeks ago a posted a question about calling the customer's default
browser. In the end I decided to solve it by offering the user to spec his
preferd browser, rather than relying on ShellExecute. And that works.
Almost.
The remaining problem is the following:
I use TwebBrowser in the app to preview html output files. These files may
have links (like pointing to the user's home page). If such a link specifies
that the file should be shown in a new window (<A HREF=someURL
target=_blank>text</A>) a system error may result (something with java
scripting - way outside my app, which ten needs to be shut down with the
task manager). This error occurs only when the default browser of the user
is Firefox. Or at least, the error does not result if the default browser is
IE and neither does it occur with Firefox default when the 'target=_blank'
spec is omitted.
I guess the following is happening: TwebBrowser wants to open a new window,
as a 'copy' of itself, i.e. MS-type, while Windows is configured to stop the
activation of MS-type browsers. No problem when the URL is to be displayed
in the existing window; no problem either when the target is missing - it
fires off the default browser.
I don't see what I can do about it, unless I can intercept the TwebBrowser
link handling.
Note that I would gladly scrap the whole TwebBrowser in favour of
ThtmlViewer (which I use extensively), were it not that ThtmlViewer can not
handle some of the absolute positioning that is essential in my outputs.
Any suggestions?
Tom
.
- Prev by Date: Re: ShowModal screen position
- Next by Date: Re: dollar sign integers? $003?
- Previous by thread: ShowModal screen position
- Next by thread: Stretching and aligning components to form size
- Index(es):
Relevant Pages
|