943,931 Members | Top Members by Rank

Ad:
Apr 5th, 2007
0

a href and marker problems

Expand Post »
I think I am going nuts. I an using the <a> tag with href to go to a link in another document it works correctly in my topstyle editor, works in mozzilla. When I use IE7 it opens the page but does not go to the proper link here are the lines.

one html document
HTML and CSS Syntax (Toggle Plain Text)
  1. <h5><a href="deapajobs.html#job1">PA Maine's Community Health Centers</a></h5>
in deapajobs.html I have a line:
HTML and CSS Syntax (Toggle Plain Text)
  1. <td colspan="2" class="jobtitle" name="job1" id="job1">Physician Assistant</td>
Similar Threads
Reputation Points: 10
Solved Threads: 1
Newbie Poster
narsto is offline Offline
9 posts
since Sep 2006
Apr 6th, 2007
0

Re: a href and marker problems

try this:
<h5><a href="deapajobs.html#job1">PA Maine's Community Health Centers</a></h5>
...
<td colspan="2" class="jobtitle"><a name="job1">Physician Assistant</a></td>

I think, you should be able to use anything with a name as a bookmark target ( but I can't seem to find anything that confirms that explicitly ). Old behaviour used to only use names of <a> elements as bookmarks; perhaps IE7 is only respecting that behaviour..

Are you using a document type definition?
Last edited by MattEvans; Apr 6th, 2007 at 3:42 pm.
Moderator
Featured Poster
Reputation Points: 522
Solved Threads: 64
Veteran Poster
MattEvans is offline Offline
1,091 posts
since Jul 2006
Apr 9th, 2007
0

Re: a href and marker problems

The a tag's name marker is not the same as the name function for other tags. Each tag has its own attributes.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007
Apr 9th, 2007
0

Re: a href and marker problems

I am not sure what you mean could you give me an example. Thank You.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
narsto is offline Offline
9 posts
since Sep 2006
Apr 9th, 2007
0

Re: a href and marker problems

The following code is the only kind of code which can accept a clicked link:

HTML and CSS Syntax (Toggle Plain Text)
  1. <a name="job1">Here is the point to land on</a>

This is defined for only a (anchor) tags.

But the name attribute does different things with other tags:

HTML and CSS Syntax (Toggle Plain Text)
  1. <object title="Explore Site" name="addform" type="text" data="pbook.txt">

In the above code, it identifies the object, so other objects on the same page can talk to it. It has nothing to do with following an a link.

In the map tag, name identifies the map for use by javascript.

In the select dropdown list, name gives the name of the click line for the choice.

In the input tag, name gives the name of the field for javascript use.

All of these uses are different uses of the name attribute in different tags. They have nothing in common.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Data driven web site for xhtml,css, Jscript
Next Thread in HTML and CSS Forum Timeline: Align floated images in center of page with CSS





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC