Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

%20 characters

Status
Not open for further replies.

bubarooni

Technical User
May 13, 2001
506
US
I have recently taken over a web site and am using FrontPage2000 to maintain it. The hyperlinks are all showing as broken and I have a question as to why.
Server is NT 4.0 SP6a running IIS 4

For example:
I have a page 'wash contact page.html'
The href to it on the default page reads 'wash%20contact%20page.html'
If I type in:

contact page.html

it successfully navigates to the proper page but the address bar reads:


If I click on a hyperlink to this page from the default page of the website I get the dreaded "The Page Cannot Be Found" error. The href on this default page is 'wash%20contact%20page.html'.

Is the %20 a filler for the empty spaces in 'wash contact page.html'? If so any ideas on fixing this would be greatly appreciated.
 
%20 is indeed the code for a blank space.
The simplest thing to do is replace blanks with an underline. There should be no blanks in the actual htm name of the page. You can put them in the common name, which you create with page properties. That way, if someone saves your page in the favorites list, they get the common name, and it looks better.
Hope that helps

Dick
drowland@ebasin.net
 
Is there any particular reason the web developer would have hardcoded these blank characters into the webpage? There is some java script on the page. Could this script somehow be using the blank characters? Thanks for your help.
 
I have no idea why some developers do the things they do.
When I have taken over someone elses work, I quite often find the best thing to do is recreate the pages completely.
They look the same on the web, but they work better, and I don't have to try to figure out what the predecessor was thinking.

Good luck.

Dick
 
Yeah, I think you are right. I may as well just go in and change it all. There is not a single line of comments in the whole site so I don't have the slightest idea what the jscripts are supposed to be doing other than menu stuff. Well, thanks for your comments. I feel better about going in and changing the href's now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top