473,554 Members | 3,098 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Correct form for file:// URLs (or why don't they work in Firefox?)

I'm using a number of hyperlinks on an Intranet I'm developing which refer
to documents on a network server. The URLs I'm using have the form:
file://<server>/<path>/<file>.pdf

<server> is an UNC path, like: \\hostname

They work perfectly in IE, but not in Opera or Firefox. I can't see any
reason why not - is the form correct? Any other ideas?

--
############### #####
## PH, London
############### #####
(crossposted: follow-up to: uk.net.web.auth oring)
Jul 23 '05 #1
3 4647
"Philip Herlihy" <fo******@herli hy.eu.veil.com> wrote:
I'm using a number of hyperlinks on an Intranet I'm developing which
refer to documents on a network server. The URLs I'm using have the
form:
file://<server>/<path>/<file>.pdf

<server> is an UNC path, like: \\hostname

They work perfectly in IE, but not in Opera or Firefox. I can't see
any reason why not - is the form correct? Any other ideas?


There is no specification of how file: URLs _should_ work, except for their
overall syntax and the statement that they refer to files in a system-
dependent manner. For a treatise on file: URLs, see
http://www.cs.tut.fi/~jkorpela/fileurl.html

With the given information, it is hardly possible to say what causes the
_browser_ differences. It might be the reverse solidus (backslash)
characters, which violate URL syntax.

Followup-To overridden - I can't see much point in asking in a random set
of newsgroups, three international and one national, and setting followups
to the _national_ group. Of course _none_ of the groups was really the
right one - as so often in crossposting. Hence followups now set to poster.
This means you should think what your problem really is, and start over
after selecting the right group.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #2
"Jukka K. Korpela" <jk******@cs.tu t.fi> wrote in message
news:Xn******** *************** ******@193.229. 0.31...
"Philip Herlihy" <fo******@herli hy.eu.veil.com> wrote:
There is no specification of how file: URLs _should_ work, except for
their
overall syntax and the statement that they refer to files in a system-
dependent manner. For a treatise on file: URLs, see
http://www.cs.tut.fi/~jkorpela/fileurl.html

With the given information, it is hardly possible to say what causes the
_browser_ differences. It might be the reverse solidus (backslash)
characters, which violate URL syntax.

Followup-To overridden - I can't see much point in asking in a random set
of newsgroups, three international and one national, and setting followups
to the _national_ group. Of course _none_ of the groups was really the
right one - as so often in crossposting. Hence followups now set to
poster.
This means you should think what your problem really is, and start over
after selecting the right group.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


Thanks - that's a very useful account. In my case, the browsers appear to
be refusing to follow file:// links from a page fetched using http://,
except for IE, which is happy to oblige. The files are PDFs on a private
network/intranet. Nevertheless, it probably makes sense to serve them from
the webserver in future.

I note your comment on crossposting. One difficulty is framing a sensible
question and another is knowing where to ask - hence the temptation to
crosspost. I was once severely scolded for not putting a "Followup" group
(and yes, that one was chosen at random). Which would you say would have
been the correct single group?

--
############### #####
## PH, London
############### #####
Jul 23 '05 #3
Philip Herlihy wrote:
Thanks - that's a very useful account. In my case, the browsers appear to
be refusing to follow file:// links from a page fetched using http://,


This is security behaviour, working as designed.

If you really want to turn it off, set the "security.check loaduri" pref
to false.

Gerv
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
6724
by: Dave B | last post by:
Does anyone know of a program that will read a text file and fill in a web form with the contents of that file? We need to get about 3000 records (5 fields to each record) into a database owned by another company and the only way it can be done (according to them) is to enter them one at a time into a web form. We can get the records into a...
1
3166
by: Craig Ringer | last post by:
Hi folks I'm a bit of a newbie here, though I've tried to appropriately research this issue before posting. I've found a lot of questions, a few answers that don't really answer quite what I'm looking for, but nothing that really solves or explains all this. I'll admit to being stumped, hence my question here. I'm also trying to make...
6
8839
by: James Owens | last post by:
I maintain a small web page for internal company use. People access it by typing "library" in their browser address bar; this defaults to "http://library" which the network admin magically redirects to my page. Lately some other departments have been creating their own web pages and I have added links to them. The pages are on the same...
26
12417
by: Howard Brazee | last post by:
I would like to click on a URL of a html document that will open several URLs at once for me. Does someone have an example of a html document that will do this?
6
1364
by: phillip.s.powell | last post by:
Has anyone ever seen anything like this before? One of my co-workers' laptops fails to produce any HTML content found between well-formed <form> tags (however, the pages produce fine in others' versions of IE 6.1 using XP and my Firefox 2.0 using Linux); even the <form> tags themselves vanish. Everything else produces w/o problem whatsoever....
35
2029
by: Aaron Gray | last post by:
Hi, I have some code I just cannot seem to get to work properly on FireFox. It is probably something simple. On FireFox the following code does not seem to terminate in the browser, but it works fine on IE :- http://angray.members.beeb.net/Test/Test5.html
8
3648
by: david.lindsay.green | last post by:
Hello all, I am quite new a web scripting and making web pages in general and I have stumbled across a problem I have as yet been unable to solve. I am trying to take the contents of a textarea box and save it to a file. This step is not to hard however the contents of the textarea is mostly latex source so it contains just about every special...
20
6350
by: Daniel Kaplan | last post by:
Hey All, In some of my pages I use a quick form to give navigational button choices, rather than links. One of them is this: <FORM name="nulltry" enctype="multipart/form-data" action="http://www.mysite.com/cgi-bin/enter_one.pl" method="POST"> <INPUT type="submit" value=" Enter Another "> </form>
3
1565
by: hd181a | last post by:
I have some JS code that reads URLs file links from a database and creates link the the files on a web page. It works fine in IE 6 but now I want it to work in Firefox. The URLs I need to handle are: file:\\Server\Share\Directory\File.ext file:\\\\Server\Share\Directory\File.ext file://Server/Share/Directory/File.ext I have...
0
7581
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8018
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7541
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7872
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6123
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5423
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5142
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3545
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1114
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.