MozillaZine

named anchors not working in Firefox

User Help for Mozilla Firefox
Guest
Guest
 

Post Posted January 31st, 2005, 11:33 am

I maintain a site where I have named anchors in a single page, pretty straightforward. For some reason the named anchors do not work in Firefox 1.0, but work fine in IE 4+. I'm thinking it has something to do with the placement of the named anchor in the URL at the end of the query string, but have no idea why.

Here's what the link looks like on the page with the problems:
http://www.owingo.com/rates.asp?CartId={98FFEVEREST3748-2712-4726-86F8-1A1E90DCA83B}&url=GR#z

You can see the #z at the end of the URL. The "CartID" (session ID) is dynamically generated and I cannot really insert the anchor before the ? signifying the beginning of the query string.

To get to the page, click here: http://www.owingo.com/, then click on "Great Rates" in the main nav. The named anchors are at the top of the page, A-Z.

Any help in fixing is much appreciated.

Chris

Guest
Guest
 

Post Posted January 31st, 2005, 12:10 pm

Here are the <A HREF="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.owingo.com%2Frates.asp%3FCartId%3D%7B98FFEVEREST3748-2712-4726-86F8-1A1E90DCA83B%7D%26url%3DGR%23z&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&ss=1">validation results</A>. 1074 errors. Most seem to revolve around the use of 'NOWRAP'.

First thing you need to do is move all of the code before your opening <HTML> tag to after the your opening <HEAD> tag. Same goes for all of your attribute markup (background, table, etc.) It really should go in a style sheet which you place a link to within your <HEAD> tags.

You also need to realphabetize your names. You have countries with one letter in among countries with a different letter. For example, Bogota is in with 'C' countries and Buenos Aries is in among 'A' countries.

The issues you are having may have something to do with the code not being correct. Start by fixing the above issues and see if that helps.

KAS

Unarmed
 
Posts: 4941
Joined: July 31st, 2003, 1:26 pm

Post Posted January 31st, 2005, 12:18 pm

Put the named anchor targets inside the table cells, not outside.

Guest
Guest
 

Post Posted January 31st, 2005, 12:30 pm

Much thanks for running the validator, but this is a canned site that I did not code and the number of errors is ridiculous. Fyi, the product is called Everest iCode... never buy it.

Anyhow, I will try fixing a few glaring things and see if that helps. Also, thanks for finding the alphabetizing errors.

Chris

old FatJohn
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted January 31st, 2005, 12:32 pm

A few proper code producing products here, price tag 0$.

W3C Amaya
http://www.w3.org/Amaya/

NVU
http://www.nvu.com/index.html

Guest
Guest
 

Post Posted January 31st, 2005, 3:33 pm

Thanks for the tool suggestion, but I'm not generating the code. The code was provided by the software manufacturer. The site is bundled with some accounting software and there is miles of poorly written code that no sane person would bother fixing. The site seems to work in IE and Gecko browsers and I think I'll settle for that.

Again, thanks.

C

Return to Firefox Support


Who is online

Users browsing this forum: Google Adsense [Bot] and 19 guests