I asked this before, but it may have gone south with deja.com, so I
try again:

This worked in Netscape 5 but doesn't in Netscape 6 or Mozilla. All
this relates to working offline, trying to open the browser with a
file displaying, as when one clicks File | Open File and gets a file
from the box. (I can get this job done online with a form and a CGI
script, but that's not what I need.) My case: a TCL script (which I
execute with an .exe created by Freewrap) establishes the browser with
one of the two lines following, one for N5 of course, the other for N6
(and including the path would be a red herring, the PATH has taken
care of that)

set browserName "netscape"
set browserName "netscp6"  

The TCL program calls a perlscript which establishes the file for the
variable "$htmlFileName" as it does its work, and then calls for the
browser  with

 exec $browserName "$htmlFileName" &

In N5 this loads Netscape and displays the file designated by the
scalar. In N6 (or Mozilla) it opens the browser all right, but seems
to go looking for the first thing it finds in the filename, as if one
had pressed "Search" instead of "Go" on the location line. If online,
eventually it says it can't find "C", which I take it it is taking
from the path to the filename. (I've tried including the full path to
the filename, but that's a red herring too, it acts no differently.)
If offline it ends up with an empty window, into which I can load the
file the perlscript properly created: but I want to do it in the one
step, a new Navigator window into which the file is loaded.

I can't use N5 or Internet Explorer because my files contain a lot of
Unicode entities which neither of those browsers properly support. 

Bill Cadbury





Reply via email to