Links failing in Netscape browser.

windows

Guest
I'm creating my first site using notepad (not pubplished yet). The links work fine in IE. When I view the page in Netscape however the links don't work. I noticed that when I view a page in Netscape it modifies the .html document name by adding a %20 to it. For instance, the link for the home page (the page I'm working on) is <!-- m --><a class="postlink" href="C://My">C://My</a><!-- m --> Documents//homepage.html but in the Netscape address bar it reads "C://My%20Documents//homepage.html. The font style of the text link that tells the name of the site and links back to itsef has also changed. An indication to me that there is an address discrepancy. I tried using the %20 in the address but that didn't help. Can anyone here?<!--content-->the %20 just means space... it does it in IE too.<br />
i have never used netscape, so i dont know, sorry.<br />
a way you can test it(this works in IE at least):<br />
Type "About:" in the URL field.<br />
Type out some code (<marquee>hey</marquee>, etc.) and see if it works. you should see some %20's in there too, if you had spaces!<!--content-->when you do publish your site, the links should and will be relative to your index page. in other words, you will not have a space between My and Documents. remember, URLs cannot have spaces. the best thing to do is create a folder called website and build everything inside that folder. then all you have to do is upload everything in that folder and won't have to change any links later.<br />
good luck.<!--content-->yup, NS has problems with pages that have spaces in them. but you can take it out of My Documents an dinsert it into another folder that doesn't have a space and it should work just fine.<br />
<br />
your website will not have spaces so don't worry about it<!--content-->Make sure that your links only reference the names of the pages, not any of the folder names on your hard drive, otherwise when you upload your site people will not be able to use it. They will want to get the files from the web site, not some place on your hard drive. That is, use relative links, not absolute ones including folder names on your hard drive.<br />
<br />
The %20 problem is well known. You can have that within a link (but that is not a good idea), but if you type, or paste, it into the address bar it will never ever work. Best avoid spaces in all names. Your links should not include the C:\My Documents\ part of their current location, as that will fail when you upload them to the site.<!--content-->Originally posted by giz <br />
Make sure that your links only reference the names of the pages, not any of the folder names on your hard drive, otherwise when you upload your site people will not be able to use it. They will want to get the files from the web site, not some place on your hard drive. That is, use relative links, not absolute ones including folder names on your hard drive.<br />
<br />
The %20 problem is well known. You can have that within a link (but that is not a good idea), but if you type, or paste, it into the address bar it will never ever work. Best avoid spaces in all names. Your links should not include the C:\My Documents\ part of their current location, as that will fail when you upload them to the site. <br />
<br />
That works fine and dandy for Netscape but what does that do for IE? Now the links work in Netscape and not in IE. lol :confused:<!--content-->all your link have to look like this<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"file.html">file</a><br />
<br />
not<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"C://My Documents//file.html">file</a><!--content-->Originally posted by scoutt <br />
all your link have to look like this<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"file.html">file</a><br />
<br />
not<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"C://My Documents//file.html">file</a> <br />
<br />
My links look like this: <A HREF=http://www.htmlforums.com/archive/index.php/"site5.html">TEXTLINK</A><br />
<br />
Still doesn't want to work in IE when written like that. I saved the file as site5.html but when I view it in my IE browser IE puts My Documents//site5.html in the address bar. Could be a bug?<!--content-->no the link looks fine, the full path is default as that is the folder you are in. are you sure site5.html exist? do you get a 404 error or can't find the file error?<!--content-->Originally posted by scoutt <br />
no the link looks fine, the full path is default as that is the folder you are in. are you sure site5.html exist? do you get a 404 error or can't find the file error? <br />
<br />
Hmm. Now it works. I can't explain it. site5.html was always there. The first time I changed the link to it it didn't work so I changed it back. Then before responding to you I tried it again to make sure it didn't work and now it works. So I can keep the folder address as site5.html and the link will work in Netscape and IE?<!--content-->If you keep all of your files that make up your web site inside one folder, then all you need to do is refer to that file by its name (file.htm). The file location is irrelevant in that case, and does not need to be mentioned.<br />
<br />
The location only needs to be mentioned if the file is in some other folder compared to the file that is refering to it. An example for a file that is in a folder one level below the current folder would be referred to as: folder/file.htm, or if it is on some completely different web site (when you refer to it by the complete URL like <!-- m --><a class="postlink" href="http://www.sitename.com/folder/folder/file.htm">http://www.sitename.com/folder/folder/file.htm</a><!-- m -->).<!--content-->wow! 7712 posts??? woah!<br />
ok they probly already said this but i am too lazy to read it so here goes:<br />
1)every file must be in the same folder (with the exception of embedding, and using subfolders)<br />
2)your homepage must be titled index.html or default.html if you want just <!-- w --><a class="postlink" href="http://www.whatever.com">www.whatever.com</a><!-- w --> to work!<br />
3)NOTHING can have spaces in a url, sorry!<br />
and i think thats it... try moving it out of my documents<!--content-->
 
Back
Top