?
Solved

tables and href

Posted on 1999-01-13
15
Medium Priority
?
373 Views
Last Modified: 2012-05-04
I want to ancor several lines in a table.
This works with <a href=#ancor>  on the same document, but not with <a href=file#ancor> from/to another document, wher it alwas jumps to the beginning of the table.
Any hints?
0
Comment
Question by:ahoffmann
  • 5
  • 3
  • 2
  • +4
15 Comments
 
LVL 5

Expert Comment

by:Christian_Wenz
ID: 1841628
do you have an online example?
0
 
LVL 51

Author Comment

by:ahoffmann
ID: 1841629
no
0
 

Expert Comment

by:DavidME
ID: 1841630
Does it happen with several different browsers?

Have you checked that the name of the anchor is exactly the same?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 51

Author Comment

by:ahoffmann
ID: 1841631
happens with IE4.0, Netscape 3.x and 4.05
0
 
LVL 4

Expert Comment

by:ruperts
ID: 1841632
I tried this as well, and it can't be done, it will always jump to the begining of the table...

Unless you can split your table into 2 smaller tables and put the anchor in between.
0
 
LVL 51

Author Comment

by:ahoffmann
ID: 1841633
ruperts, I won't believe (for now).
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1841634
works fine for me in IE 4.x.. Can you post your code or email it to me at masseym@javanet.com

- Matt
0
 
LVL 51

Author Comment

by:ahoffmann
ID: 1841635
while preparing an example, I found the solution:
 the problem where not the HREF tags, but the NAME tags.
(for the points) does anybody know what was wrong (the syntax was ok)?
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1841636
If you have spaces after the # char it will not work.
0
 

Expert Comment

by:DavidME
ID: 1841637
Does it work if you use quotes: <A NAME="thename">?
0
 

Expert Comment

by:jrsjr
ID: 1841638
My guess is that it could not find the anchor because the anchor had a # sign and should not have.  Therefore, it just jumped to the page and didn't actually jump to any anchor.  When you edited the anchor syntax, it was then able to jump to the anchor instead of just jumping to the page.

What did you change?
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1841639
the answer above:  You have to have the # to decare it as an anchor.

0
 
LVL 51

Author Comment

by:ahoffmann
ID: 1841640
I'm going to support@experts-exchange to answer my own question ;-)

0
 

Expert Comment

by:jrsjr
ID: 1841641
In my answer, I meant that the actual anchor name may have had a # in it.  It doesn't need to and should not.  A proper example would be:
<a name="anchor1">
and use
<a href="#anchor1">

It sounds like the external link couldn't find the anchor and therefore went to the top.
0
 
LVL 7

Accepted Solution

by:
linda101698 earned 200 total points
ID: 1841642
ahoffmann asks that I post the following answer to this question.

Linda Gardner
Customer Service @ Experts Exchange


    Ancors in a table *must* be inside the <TD> or <TH> tags to work properly.
    Example:

    <A HREF="#table_ancor">good</A>
    <A HREF="#bad_ancor"  >bad</A>
    <TABLE> ...
    <TD><A NAME=table_ancor>data</TD>
    <A NAME=bad_ancor><TD>next data</TD>
     ...
    </TABLE>


0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question