linking to the middle/bottom of the content frame

Hi, guys.<br />
<br />
I have a framed page, frameset big_schedule.html<br />
<br />
layout as follows (for example), <br />
<br />
top - top.htm<br />
left - left.htm<br />
content - schedule.htm<br />
<br />
Other *.html have links to the big_schedule.html.<br />
<br />
One of the pages has link to the particular date, say, date#10 on the schedule.htm, which happens to be in the middle of the schedule.html page, - in big_schedule.html user has to scroll down the schedule.htm page to see it.<br />
<br />
<br />
Question: how can I arrange the link to the frameset big_schedule.html so the date#10 will be on the top of the schedule.htm content frame?<br />
<br />
Thanks.<!--content-->Yes.<!--content-->It's actually simple (yet I cannot think of anything... maybe make a dup.page with an onload in in?...)<br />
<br />
The schedule.htm content page contains actual schedule, and has a table with dates on it. Let's say that on one of the pages the link says "Event for December 10, 2004" . On schedule.htm there is a reference <br />
<br />
<a name="121004"></a>December 10, 2004.<br />
<br />
The thing is, that it is located in the middle of the page, after all the 2003 dates. If it wasn't the framed page, the link would be simple<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"schedule.htm#121004">Event for December 10, 2004</a><br />
<br />
So I would like to open the whole frameset with schedule.htm in it, as if I called for that particular anchor, so the December 10, 2004 line will load on top, as if it was commanded to go to anchor #121004 on loading.<br />
<br />
It is a one-time thing. I mean, I may use it more then once, but I don't need anything complicated for the link that gets updated twice a year.<!--content-->Originally posted by Daria <br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"schedule.htm#121004">Event for December 10, 2004</a><br />
<br />
So I would like to open the whole frameset with schedule.htm in it, as if I called for that particular anchor, so the December 10, 2004 line will load on top, as if it was commanded to go to anchor #121004 on loading.<br />
<br />
<br />
So why don't you just make a frameset with <frame src=http://www.webdeveloper.com/forum/archive/index.php/"schedule.htm#121004" ... :confused:<!--content--><a name="121004"></a>December 10, 2004. <br />
<br />
The thing is, that it is located in the middle of the page, after all the 2003 dates. If it wasn't the framed page, the link would be simple <br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"schedule.htm#121004">Event for December 10, 2004</a> <br />
Try these:<br />
<a name="121004">121004</a>December 10, 2004. <br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"schedule.htm"target=_top#121004">121004</a> Event for December 10, 2004<br />
<br />
If they don't work, than try these:<br />
<br />
December 10, <a name="2004">2004</a>2004. <br />
<br />
Event for December 10, <a href=http://www.webdeveloper.com/forum/archive/index.php/"schedule.htm"target=_top=ANOTHER.html#121004">2004</a> 2004<br />
<br />
Something like that (I hope)<!--content-->Sorry Stefan you beat me to the post. I think you hatd frames, do you?<!--content-->Sorry, guys, I forgot to specify, that the link itself is located on the page that doesn't contain frames.<br />
<br />
That's why I don't just use... (any of above).<!--content-->Originally posted by Daria <br />
Sorry, guys, I forgot to specify, that the link itself is located on the page that doesn't contain frames.<br />
<br />
That's why I don't just use... (any of above). <br />
<br />
You need to read my post again, becuse that is exactly the question I'm answering.<br />
<br />
Ie<br />
Your link on a the non-frame page should lead to a frameset, and the content frame on that frameset should have the src=http://www.webdeveloper.com/forum/archive/index.php/"schedule.htm#121004"<!--content-->I'm sorry, maybe I misunderstood.<br />
<br />
I've tried that, but for some reason it doesn't get through - I either end up with the blank content as an untitled-1.htm (if I do it with DW, since it's automatically kicks you back into untitled stuff), or with a page not affected by the linking to the anchor (if I write code manually).<br />
<br />
I've set a simpler example with just two frames in the frameset.<br />
<br />
Please, let me know what is wrong.<br />
<br />
===============<br />
here is the source for the original html with the link<br />
<br />
<br />
<html><br />
<head><br />
<title>nicetry</title><br />
<meta http-equiv="Content-Type" content="text/html"><br />
</head><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"big_schedule.html">Event for December 10, 2004</a><br />
</body><br />
</html><br />
<br />
<br />
here is the source for the frameset<br />
<br />
<br />
<html><br />
<head><br />
<title>big_schedule</title><br />
<meta http-equiv="Content-Type" content="text/html;"><br />
</head><br />
<frameset rows="50,422"><br />
<frame src=http://www.webdeveloper.com/forum/archive/index.php/"top.htm"><br />
<frame src=http://www.webdeveloper.com/forum/archive/index.php/"schedule.htm#121004"><br />
</frameset><br />
</body><br />
</html><!--content-->Hi Daria,<br />
<br />
are you using a server side language like PHP,Perl etc.?<!--content-->Hello, and yes.<!--content-->Never mind - maybe it was some sort of a glitch or a typo (most likely) in my original code - because now that I ran the example one more time, example worked. I'm just going to have to set a duplicate frameset with anchor reference, since there are a lot of links from other pages to the top of the schedule.htm,<br />
<br />
Thanks, guys! I'm going to comb through those lines of my original code to see where I goofed up.<br />
<br />
D.<br />
<br />
P.S. but maybe there is a way to avoid creating dup.frameset?<br />
if not, duplicating will work, anyway - they don't take much space.<br />
<br />
Thanks again.<!--content-->Originally posted by Daria <br />
Never mind - maybe it was some sort of a glitch or a typo (most likely) in my original code - because now that I ran the example one more time, example worked. <br />
<br />
<br />
This might be a good time to point out also that you should avoid names like the one you use, consisting only of digits.<br />
<br />
HTML 4.01 ?.2<br />
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").<br />
<br />
<br />
P.S. but maybe there is a way to avoid creating dup.frameset?<br />
<br />
<br />
Yes<br />
* Serverside scripting (the best)<br />
* Clientside scripting (breaks in many browsers)<br />
* The new X-frames spec (breaks in even more browsers, if not all, since it's a brand new spec draft).<!--content-->Thanks, Stefan<br />
<br />
I know about digits - I just didn't bother for the example. Sorry for that, i'll be more careful next time.<br />
<br />
Thanks for your input. :)<!--content-->
 
Back
Top