Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   opening a local html file, posted by Arno Teunisse on Sun Oct 21 22:35:19 2007 
    icon2.gif   Re: opening a local html file, posted by Stefan Ritt on Mon Oct 22 17:38:32 2007 
Message ID: 65625     Entry time: Sun Oct 21 22:35:19 2007     Reply to this: 65629
Icon: Question  Author: Arno Teunisse  Author Email: A.teeling3@chello.nl 
Category: Question  OS: Windows  ELOG Version: 2.6.5-1890 
Subject: opening a local html file 
Hello 

I've managed to create several logbooks that are an index of a (slow) shared 
directory. Now I use elog to search for files that are located on the slow 
shared directory and just have to click on the link in the elog logbook to open 
the file. Every day a simple batch file and 2 perl scripts will recreated the 
elog logbooks. So updates are done without any user input. ( mainly via the 
elog.exe program ) This all works great. 

To access the shared files in the above mentioned logbooks i use for one of the 
attributes : (All on one line) :

<A HREF='\\////HOST/dir 1/dir 2/dir 3/dir 4/dir 5/dir 6/dir 7/filename.doc' target='_blank'>filename.doc</a>

And this works great.

In the above the .doc may be replaced with .html, .xls or whatever WINDOWS 
supports. 

Here is my question : 

Now I want to open a  .html on my local drive. Should be possible but i seem to 
miss the correct format. With local drive I mean the drive that elog is running 
on. In my case this is C: 

I tried : 

file:///c:\dir 1\dir 2\file.html
file:///c:/dir 1/dir 2/file.html
<A HREF="file:///c:\dir 1\dir 2\file.html">file.html</a>
<A HREF="file:///c:/dir 1/dir 2/file.html">file.html</a>
<A HREF='file:///c:\dir 1\dir 2\file.html'>file.html</a>
<A HREF='file:///c:/dir 1/dir 2/file.html'>file.html</a>

and much more variants of the above. ( the first two examples do not respect the 
Spaces in directory names and file name, tried some quoting, but does not help)

In my browser ( IE7.0)  i see in the status bar : 

file:///c:/dir%201/dir%202/file.html

That seems to be OK. But nothing happens when i click the left click the link in 
the elog logbook. 

The above contains the correct directories and filenames. I know that the file 
is there because right clicking the link in elog and selecting "Save Target As" 
will save the file. However just left clicking the link to the file does not 
open the browser to display it. ( As i stated : this works on a shared drive, but not 
on a local drive.) 

Any suggestions ? 
ELOG V3.1.5-3fb85fa6