Default browser revisited



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


.



Relevant Pages

  • comp.lang.javascript FAQ - Quick Answers 2008-10-13
    ... Javascript Tips ... _How can I disable the back button in a web browser_? ... _How do I check to see if a child window is open, ... upon the cache headers that your server sends. ...
    (comp.lang.javascript)
  • Re: Page layout for tubie pages on the net Re: Deep Space 845 55WSET amps.
    ... picture on the right ... Just to add a bit of explanation, the viewing browser might have ... browser will then word wrap to the viewer's window. ... in one cell and the text in another. ...
    (rec.audio.tubes)
  • Re: Clear all optgroups and options from a select list
    ... could not drag one window over the contents of another because the mouse ... responsive in either major browser. ... As far as the javascript ... specification is concerned the implementations that assert that they ...
    (comp.lang.javascript)
  • Re: NXP Gone mad
    ... responsible for the development of the new NXP site. ... displayed in a new window. ... - the NXP web site is particuarly Browser ... In one browser on visting the website after the SECOND invitation to the ...
    (comp.arch.embedded)
  • RE: VBA draw and erase lines (crosshairs) on form
    ... I do not mean a worksheet based form. ... launch an IE browser that will then go to a web site to display a chart. ... the ends of the browser window. ... Is Nothing Then Exit Sub ...
    (microsoft.public.excel.programming)