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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Jumpto specific place on page. works in i.e 5.0 but not in i.e 6.0

Status
Not open for further replies.

anders123

Programmer
Jun 11, 2003
7
SE
I have a FAQ consisting of two pages. There first page shows all question and when you select a question you come to the other page which contains the answers.

The problem is that when I use internet explorer 5.0 the answer page opens a I start at the right answer. When I use IE 6.0 I always come to the top of the aswer page no mather which question I select. Is this a know fault/problem? How can i solve it?

Regards
Anders
 
Can you post a <a href=link>, and an example o fthe <a name=> on the target page.

This would possibly be best posted on a HTML forum

Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...
 
I am using a cgi script. The faq is designed so administrators can add FAQ's by filling in a form.
 
Ths being the case, when the form data is applied to the HTML coding, be sure to include the appropriate <A NAME=&quot;xyz&quot;> references as well as the correct linking syntax <A HREF=&quot;#xyz&quot;> for each newly added FAQ. Remember that these must be unique for each FAQ on the page.

There's always a better way...
 
The first page with the questions looks like this after it's opened and generated by the cgi-script:

../faq/index.html

<a href=&quot;../faq.cgi?action=displayAll#019&quot;><b> Procedure at alarms</b></a>

the page with all the answers which is also cgi-script generated looks like this.

/faq.cgi?action=displayAll#019

<a name=&quot;019&quot;></a><tr><td width=&quot;50%&quot; valign=&quot;top&quot; align=left>019 &nbsp Thursday 18 July 2002 14:03<br><b>Procedure at alarms</b>


So there is a unique name for all the anchors. The strange thing is that it works in ie 5.0 but not in ie 6.0
 
I solved the problem. I moved out the anchor outside the table and now it's working good.
 
In answer to your original question as to why some things work one way on IE 5 vs IE 6, the answer is the same as why you get different answers with different browsers like IE & Netscape.

There are a set of flaky standards on how the browser should work when you code correctly. There are no real standards on how to handle the millions of wrong ways to code certain functions. You must have a coding problem, and IE 6 just requires you to code better.

Example if you leave the </table> off a <table></table> set in Netscape it does not show you any of the table's content and may just jump to the end of the page. In this way Netscape is trying to point out the start of the area in the page that it had trouble. IE on the other hand tries to guess where the missing <table> set ends and acts like you coded it.

This makes IE look like the better browser but it is letting you get away with a mistake and if you only test your page under IE it make not work correctly under Netscape or AOL. Eventually you will want a correctly coded page.

I always have my students test under all browser and the most popular releases.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top