|
|
| ||||||
![]() |
| | Thread Tools |
| | #1 |
|
Posts: n/a Hébergeur: | 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? |
|
| | #2 |
|
Posts: n/a Hébergeur: | 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 |
|
| | #3 |
|
Posts: n/a Hébergeur: | 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? |
|
| | #4 |
|
Posts: n/a Hébergeur: | 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 ! |
|
![]() |
| Thread Tools | |
| |