PHWinfo banniere

ACCUEIL ANNUAIRE ARTICLES COMPARATIF HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Go Back   PHWinfo > Forum Web Design > Web Design > comp.inf.authoring.html > Local vs. remote files on CDROM-based server
FAQ Members List Search Today's Posts Mark Forums Read
Local vs. remote files on CDROM-based server

Reply
 
Thread Tools
Old 01/06/09, 12:19   #1
Maxwell Lol
Aucun Avatar
 
Posts: n/a
Hébergeur:
Default Local vs. remote files on CDROM-based server


I have built a perl-based web server that will reside on a CDROM, and has
the ability to search the text files on the CDROM. I'll used
ActiveState's perl to make a *.exe file.


The problem I have is described here:

http://kb.mozillazine.org/Links_to_l...s_don%27t_work
Where Firefox won't allow users to link from http://localhost:8080/ to a
file:///

Essentially people can click on a search result, but the browserr
does not open the file. The user has to copy and paste the URI.

Is there any recommended practice to work around this issue?
Something with Javascript?

  Reply With Quote
Old 01/06/09, 16:35   #2
Jonathan N. Little
Aucun Avatar
 
Posts: n/a
Hébergeur:
Default Re: Local vs. remote files on CDROM-based server

Maxwell Lol wrote:
> I have built a perl-based web server that will reside on a CDROM, and has
> the ability to search the text files on the CDROM. I'll used
> ActiveState's perl to make a *.exe file.
>
>
> The problem I have is described here:
>
> http://kb.mozillazine.org/Links_to_l...s_don%27t_work
> Where Firefox won't allow users to link from http://localhost:8080/ to a
> file:///
>
> Essentially people can click on a search result, but the browserr
> does not open the file. The user has to copy and paste the URI.
>
> Is there any recommended practice to work around this issue?
> Something with Javascript?
>


Web server is on the CDROM with the test files? Then have with text
files within document root of web server's site and server files with http

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
  Reply With Quote
Old 01/06/09, 19:20   #3
Ed Mullen
Aucun Avatar
 
Posts: n/a
Hébergeur:
Default Re: Local vs. remote files on CDROM-based server

Maxwell Lol wrote:
> I have built a perl-based web server that will reside on a CDROM, and has
> the ability to search the text files on the CDROM. I'll used
> ActiveState's perl to make a *.exe file.
>
>
> The problem I have is described here:
>
> http://kb.mozillazine.org/Links_to_l...s_don%27t_work
> Where Firefox won't allow users to link from http://localhost:8080/ to a
> file:///
>
> Essentially people can click on a search result, but the browserr
> does not open the file. The user has to copy and paste the URI.
>
> Is there any recommended practice to work around this issue?
> Something with Javascript?
>


So don't use file:///file.txt links, use http://file.txt or relative
links, e.g., /folder/file.txt

--
Ed Mullen
http://edmullen.net
Is it time for your medication or mine?
  Reply With Quote
Old 01/07/09, 12:54   #4
Maxwell Lol
Aucun Avatar
 
Posts: n/a
Hébergeur:
Default Re: Local vs. remote files on CDROM-based server

Ed Mullen <ed@edmullen.net> writes:

> So don't use file:///file.txt links, use http://file.txt or relative
> links, e.g., /folder/file.txt


Thanks, Ed and Jonathan. I think I have it working now.
I tweaked the server to deliver files on the CDROM when accessed as
html://localhost/file, so that both file: and http: both work.

So if they don't (or can't) use the search engine, they access info as
file:// and if they do, they can use both styles of URI.

Thanks for your !

  Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT +1. The time now is 22:32.


Powered by vBulletin® ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
PHWinfo is a website Education Without Frontiers
Ad Management by RedTyger
All rights reserved
Page generated in 0.15441 seconds with 8 queries