PDA

View Full Version : Mysterious Javascript/CGI Failure


Delphi123
July 27th, 2004, 06:59 PM
Dear friends:

I have a jewelry website at:

http://www.immortalgems.com

Under Catalogue (top horizontal menu) there is an oval menu to the left called Showcase. Two of the seven catagories are now operational: Diamond Jewelry and Pearls. I have just completed and added the category Engagement & Anniversary. For some strange reason, when I click on this category, only the first page of the javascript navigated showcase shows up. If I click on Page 2 or 3 in the Javascript pull-down menu at the top left of the showcase, I get an error message telling me that the file cannot be found on the server. Yet, if I click on the folder in question, all the pages are there and all show up perfectly in the browser when you click on them. Here is the URL:

http://www.immortalgems.com/CATALOGUE/Engage_%20Wed/

I've used the exact same javascript/cgi jumpbox menu. It works perfectly in the other categories, but not here. I have spent the past two hours meticulously checking the links and syntax and rechecking and rechecking yet again but I still can't find the error. I think at this point only somebody who is looking at it for the first time will catch what must be an obvious error.

Would really appreciate your help.

Benjamin

degsy
July 27th, 2004, 07:12 PM
Your problem is a space in the url

http://www.immortalgems.com/CATALOGUE/Engage_%20Wed/

In the web environment a space is converted to %20
but your script is looking for /CATALOGUE/Engage_Wed/Engage_Wed-02.html

Try removing the space.

Note! that usually it is best to keep files in lowercase and to not have any spaces.
Use underscores and such.

If possible use an 8 character filename.

Delphi123
July 27th, 2004, 07:37 PM
Dear degsy:

Thanks so much for your help. I fixed the problem. I also found another, more serious problem which I fixed: I forgot to add the path for the cgi-bin script in the "form method=get action" section in the top line of the javascript script.

Everything OK now.

Thanks again.


Benjamin