Local file links problem

J

Jeremy

IE6 on Win XP Pro

Really would appreciate any help u can give here guys - this is
confusing me!

Forgetting the question "why would you want to do that?", is it possible
to combine on a single HTML web page both 'local' and http links?

For example:
<a href="http://www.mysite.com">http link</a>
<br>
<a href="file:\\c:\temp\file.txt">file link</a>

Now I would expect this to work but when this page is served from an
*http* server (i.e. as opposed to loading the web page from a local
file), the link to the local file is displayed as a link but
clicking it does nothing.

This works as expected in e.g. Opera 6 (i.e. both links work correctly).
I think it works as expected on IE 5.5 as well. Is there an option which
is preventing this from being permitted?
 
G

Guest

take out the c:\... stuff and just have the file ex. me.tx
also make sure the file is in your web directory
 
J

Jeremy

take out the c:\... stuff and just have the file ex. me.txt
also make sure the file is in your web directory
No you misunderstand. The page is served by an http server somewhere. If
the pagse served has a link to a *local* file (e.g. c:\temp\fred.txt),
the browser does not attempt to open the file (even though the user does
have that file on their hard disk).

If the web page was subsequently saved as e.g. c:\My documents
\mypage.html and then that page was opened from the hard disk (i.e. NOT
served via HTTP) then the link to the local file opens.

Any clues?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top