Hi,
Can mozilla deal with relative paths in URLs using the file:/// protocol?
I've tried it with a file 'test_page.html' in the same directory as mozilla.exe (file:///test_page.html), but it doesn't seem to work.
Where can I find more obout file:/// in Mozilla?
Any pointers will be much appreiciated.
Cheers,
Dave.
WinNT4 Moz1.3 (20030310)
file:/// protocol and relative paths
- wget
- Posts: 4701
- Joined: November 8th, 2002, 9:51 am
- Location: Denmark
-
- Posts: 18
- Joined: November 21st, 2002, 7:10 am
wget wrote:Just just normal relative paths:
<a href="foobar.html">click me</a> or <a href="path/path/path/foobar.html">click me</a>
Unfortunately it doesn't work unless there's already an absolute file:/// path already there for the current file.
It would probably be a good idea for me to say what I'm trying to do, as there may be a simpler way to do it than I am trying...
I want to run mozilla from the command-line specifying a page to load from a nearby directory, without using an absolute path. Thepath is an issue because the plan is to put both the browser and content on CD, so I can't rely on the absolute name for the CDROM on MS Windows.
Cheers,
Dave.
-
- Posts: 6108
- Joined: November 18th, 2002, 11:07 am
Local files require a root directory or mount to run from. You can't assume any drive.
Try: file:///C|/test_page.html
On Windows, file:///C:/test_page.html (with the colon) works, but Mozilla will sometimes convert the colon in to a %3A sequence which is kind of annoying. You can also use backslashes file:///C:\test_page.html but again, Mozilla converts the backslash into a %5C for its own amusement. Also, some people using NT 4 have been complaining about needing 5 forward slashes instead of three for some stupid reason. Other OSes don't appear to have that problem.
Try: file:///C|/test_page.html
On Windows, file:///C:/test_page.html (with the colon) works, but Mozilla will sometimes convert the colon in to a %3A sequence which is kind of annoying. You can also use backslashes file:///C:\test_page.html but again, Mozilla converts the backslash into a %5C for its own amusement. Also, some people using NT 4 have been complaining about needing 5 forward slashes instead of three for some stupid reason. Other OSes don't appear to have that problem.