a href and marker problems

Reply

Join Date: Sep 2006
Posts: 9
Reputation: narsto is an unknown quantity at this point 
Solved Threads: 1
narsto narsto is offline Offline
Newbie Poster

a href and marker problems

 
0
  #1
Apr 5th, 2007
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>
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 1,091
Reputation: MattEvans is a jewel in the rough MattEvans is a jewel in the rough MattEvans is a jewel in the rough 
Solved Threads: 63
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Veteran Poster

Re: a href and marker problems

 
0
  #2
Apr 6th, 2007
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.
Plato forgot the nullahedron..
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,203
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 165
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: a href and marker problems

 
0
  #3
Apr 9th, 2007
The a tag's name marker is not the same as the name function for other tags. Each tag has its own attributes.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 9
Reputation: narsto is an unknown quantity at this point 
Solved Threads: 1
narsto narsto is offline Offline
Newbie Poster

Re: a href and marker problems

 
0
  #4
Apr 9th, 2007
I am not sure what you mean could you give me an example. Thank You.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,203
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 165
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: a href and marker problems

 
0
  #5
Apr 9th, 2007
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.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC