Welcome to WebmasterWorld Guest from 54.163.115.193

Forum Moderators: incrediBILL

how do I create a link to a local file via html? - revisited

   
10:22 pm on Jul 26, 2012 (gmt 0)



Today I found a discussion from October 2005 about "how do I create a link to a local file via html? [webmasterworld.com]" It was very useful to me. Thanks !

This is what I want to do - -
.....I have created a web-based "Staff Information Center" (SIC). This web site is password-protected (users must login with the username and password that I create for them). There is information there that our staff needs to know. (Staff email addresses, a telephone extension list, pay dates, holidays, etc.)
.....This "online" version is replacing the "Info Center" (IC) that was on the network at our business. The disadvantage of the IC was that you had to be at work in order to use it.
.....For now, until the old Info Center has been totally "retired", I would like a link on the SIC that will connect us to the IC.

Here are two things that I have found - -

(1)
I want to put a link to our local file (it is, actually, a HTML file that is located on our company's internal network). I will, of course, notify our staff that, if they are not "at work" then the reference to our network drive will not work. If they are at work, then then the link will work.

(2)
The post by Robin_reala on October 14, 2005 was particularly helpful. "In Firefox go File / Open File, find your file, and load it. Then the URL bar will show the correct link for your HTML." I then used that URL and inserted it into my HTML code - -


Here is a link to the old "Information Center"
<br><br>

<a target=_blank href="file:///S:/EVERYONE/Communications/InfoCenter/index.html">
click here
</a>




It works great! THANKS for the help !

[edited by: tedster at 1:18 am (utc) on Jul 27, 2012]
[edit reason] added the link [/edit]

2:31 am on Aug 1, 2012 (gmt 0)

WebmasterWorld Administrator mack is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



To improve the user experience you could determine from the ip address if they are at work or away. It would involve some server side scripting but you could only show links to local files if the user is on your network.

Mack.
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month