473,830 Members | 2,152 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 4669
"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
6750
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 comma or tab separated text file and would like to just read the file and auto insert the fields...
1
3182
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 this post as clear and detailed as possible. Unfortunately, that means it's come out like a book. I...
6
8855
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 server, but different folders (traversing the root folder). These bright young people have introduced...
26
12616
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
1371
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. Thanx Phil
35
2082
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
3717
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 character you can imagine. My question is this, how do I save an exact copy of the textarea...
20
6378
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
1577
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 figured out if I use 5 backslashes it will work in both browsers. I am having problems replacing the...
0
10769
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10479
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10523
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 most users, this new feature is actually very convenient. If you want to control the update process,...
1
7741
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6948
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5616
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5778
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3956
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3073
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.