launch a local file from hyperlink on web page??

B

briansmccabe

Hi all -

I am wondering if anyone knows how to use HTML to launch a local file
from a hyperlink on a page that is on the Internet.

I wrote a basic HTML page that has an "<a
href="C:\filename.avi">link</a>" on it, and when viewing this HTML page
on my local machine, it works fine (other than the AVI not launching in
my default player, but that's neither here nor there at the moment).

BUT when I upload this page to my site's server and view the page
over the Internet, the link does not work.

Does anyone know how I could make the link work over the Internet?


Thanks -

Brian Mc
 
E

Els

Hi all -

I am wondering if anyone knows how to use HTML to launch a local file
from a hyperlink on a page that is on the Internet.

I wrote a basic HTML page that has an "<a
href="C:\filename.avi">link</a>" on it, and when viewing this HTML page
on my local machine, it works fine (other than the AVI not launching in
my default player, but that's neither here nor there at the moment).

BUT when I upload this page to my site's server and view the page
over the Internet, the link does not work.

Of course it doesn't. How is that webserver where that page is hosted
to know where it can find "C:\filename.avi" ? It will look for it on
its own C: drive, if it has one.
Does anyone know how I could make the link work over the Internet?

Upload the file to the place where that page is, or install a
webserver on your local machine, and link to it in the normal way. You
would need a static IP address for that though.
 
M

Mitja Trampus

Hi all -

I am wondering if anyone knows how to use HTML to launch a local file
from a hyperlink on a page that is on the Internet.

I wrote a basic HTML page that has an "<a
href="C:\filename.avi">link</a>" on it, and when viewing this HTML page
on my local machine, it works fine (other than the AVI not launching in
my default player, but that's neither here nor there at the moment).

BUT when I upload this page to my site's server and view the page
over the Internet, the link does not work.

Does anyone know how I could make the link work over the Internet?

try href="file:///c/filename.avi". Of course c:\filename.avi
has to be locally accessible on the machine you are going to
view the "webpage" from.
 
G

Greg N.

Els said:
Of course it doesn't. How is that webserver where that page is hosted
to know where it can find "C:\filename.avi" ? It will look for it on
its own C: drive, if it has one.

No, it's not the task of the web server to find "C:\filename.avi". The
UA needs to find it. As this is a local file, the UA should look for it
on the local disk.

So, this should work, but of course only on clients whose disk actually
contain a copy of "C:\filename.avi".
 
E

Els

Greg said:
No, it's not the task of the web server to find "C:\filename.avi". The
UA needs to find it. As this is a local file, the UA should look for it
on the local disk.

So, this should work, but of course only on clients whose disk actually
contain a copy of "C:\filename.avi".

Yup, you're right - I think I didn't have enough Tea today :S
 

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

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top