PDA

View Full Version : Link not Opening in Correct Frame


avoirgold
08-17-2008, 08:24 PM
Yes, yes. Frames are evil, but serve my needs on this project. I need 2 static frames (top and left) and one dynamic frame. Left frame is the main Navigation Bar. The top is a Category Header. I have years listed in the Category Header that need to jump to a named anchor in the dynamic frame.

This is my frameset:

<frameset rows="*" cols="195,816">
<frame src="Navigation.html" id="NavigationBar" />
<frameset rows="106,332" cols="*">
<frame src="SWSPIRsHeader.html" id="Header" />
<frame src="SWSPIRs.html" id="MainContent" />
</frameset>
</frameset>

This is how the Header reads:

<div align="center">
<h1 class="CategoyHeader">SWSPIRs</h1>
<h1 class="Years">08 . <a href="SWSPIRs.html#2007" target="MainContent">07</a> . <a href="SWSPIRs.html#2006" target="MainContent">06</a> . <a href="SWSPIRs.html#2005" target="MainContent">05</a> . 04 . 03 . 02 . 01 . 00 . 99 . 98 . 97 . 96 . 95</h1>
</div>

When I click "06" it opens a new tab instead of jumping to the 2006 listing in the MainContent frame containing SWSPIRs.html. It goes to the correct anchor point, but just doesn't open in the darned frame. What am I doing wrong?


Thanks so much for your help!!!!

Jennifer
Novice Web Hobbyist