Need to link my navigation from one page ( "fundraising.php") to another page (schedule.php) but to a specific date, 4th Dec ==> Problem, the content of this date (04dec12.php) is in an iframe, default being closest date (i.e. 01dec.php). How can I link from one page (fundraising.php) to schedule.php making sure that in the iframe of schedule.php (see second code below) the content of 03dec12.php is displayed (in td2)?
navigation-code:(yes, a href-code is wrong, as I can't figure out how to link to schedule.php and then to 04dec12.php at the same time!!!)
Expand|Select|Wrap|Line Numbers
- <ul id="nav">
- <li id="home"><a href="index.php">Home</a>
- </li>
- <li id="schedule"><a href="schedule.php">Schedule <img src="img/navarrow.png" border="0" alt="arrow down" /></a>
- <ul>
- <li><a href="schedule.php#dec1">1<sup>st</sup> December</a></li>
- <li><a href="schedule.php#dec2">2<sup>nd</sup> December</a></li>
- <li><a href="schedule.php#dec4">4<sup>th</sup> December</a></li>
- </ul>
- </li>
- <li id="fundraising"><a href="fundraising.php">Fundraising <img src="img/navarrow.png" border="0" alt="arrow down" /></a>
- </li>
- </ul>
Below is code from schedule.php, where 1st td-cell is links to the dynamical iframe in second td-cell.
Expand|Select|Wrap|Line Numbers
- <table>
- <tr>
- <td><!-- td1 schedule dates -->
- <div class="textlink"><a href="01dec12.php" target="scheduleDetails"><b>1<sup>st</sup> December, 1pm to 5pm</b></a></div>
- <div class="textlink"><a href="04dec12.php" target="scheduleDetails"><b>4<sup>th</sup> December</b></a></div>
- <div class="textlink"><a href="16dec12.php" target="scheduleDetails"><b>16<sup>th</sup> December</b></a></div>
- </td>
- <!-- second td cell will dynamically change content dependent on which link is clicked above. -->
- <td><!-- td2 datespecific content -->
- <iframe name="scheduleDetails" src="01dec12.php" scrolling="no" width="100%" height="400px" marginwidth="8px" frameborder="0"></iframe>
- </td>
- </tr>
- </table>