Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - Link to a specific point in a frameset

 
Thread Tools Search this Thread
Old 12-22-2004, 09:55 PM   #1
Default Link to a specific point in a frameset


I want to create a link from one framed webpage to another webpage which
is defined as a 3-framed frameset in which there is a long menu on the
left-hand-side which scrolls within its own frame.

I have no problem creating a link to the frameset itself using the <a
href="second_frameset.htm" TARGET="_top">click to see</a> construct. But
what I really would like to do is to link to the frameset AND
specifically to a defined (or labelled or named) point in the scrollable
menu frame on the left-hand-side.

I am at a total loss as to how to format the link which will take me to
the new frameset with the specified menu item on display.

Please help.

Ed


Ed
  Reply With Quote
Old 12-22-2004, 10:09 PM   #2
Mark Parnell
 
Posts: n/a
Default Re: Link to a specific point in a frameset

Previously in alt.html, Ed <ex@directory> said:

> I want to create a link from one framed webpage to another webpage which
> is defined as a 3-framed frameset


*2* framed sites? You really are asking to be flamed, aren't you?

> what I really would like to do is to link to the frameset AND
> specifically to a defined (or labelled or named) point in the scrollable
> menu frame on the left-hand-side.


Welcome to just one of the limitations of frames.

http://www.htmlhelp.com/design/frames/whatswrong.html
http://html-faq.com/htmlframes/?framesareevil
http://dorward.me.uk/www/frames/
http://www.google.com/webmasters/2.html (see under "Your page uses
frames")
http://www.markparnell.com.au/articles/frames.php

--
Mark Parnell
http://www.clarkecomputers.com.au
  Reply With Quote
Old 12-22-2004, 10:14 PM   #3
Beauregard T. Shagnasty
 
Posts: n/a
Default Re: Link to a specific point in a frameset

Ed wrote:

> I want to create a link from one framed webpage to another webpage
> which is defined as a 3-framed frameset in which there is a long
> menu on the left-hand-side which scrolls within its own frame.


Mark has already given you the links to why frames are not to be used.
Let me add that there is nothing I fume at more than having to scroll
*twice* on one web page.

Well, almost nothing.

--
-bts
-This space intentionally left blank.
  Reply With Quote
Old 12-22-2004, 10:18 PM   #4
Steve Pugh
 
Posts: n/a
Default Re: Link to a specific point in a frameset

On Wed, 22 Dec 2004 21:55:24 +0000, Ed <ex@directory> wrote:

>I want to create a link from one framed webpage to another webpage which
>is defined as a 3-framed frameset in which there is a long menu on the
>left-hand-side which scrolls within its own frame.
>
>I have no problem creating a link to the frameset itself using the <a
>href="second_frameset.htm" TARGET="_top">click to see</a> construct. But
>what I really would like to do is to link to the frameset AND
>specifically to a defined (or labelled or named) point in the scrollable
>menu frame on the left-hand-side.
>
>I am at a total loss as to how to format the link which will take me to
>the new frameset with the specified menu item on display.


<a href="second_frameset.htm?foo" TARGET="_top">some link text that
descibes the target resource a damn site better than "click to
see"</a>

Then you use JavaScript to read the value 'foo' and scroll the framed
page to the appropriate location. It's a right pain and obviously not
possible if the new frameset isn't part of your site.

This is just one of the reasons why frames are a bad idea.

Steve

  Reply With Quote
Old 12-23-2004, 12:34 AM   #5
msswasstastic@aol.com
 
Posts: n/a
Default Re: Link to a specific point in a frameset

Frames do still have a valid use in online application style pages, so
I assume that's what this is for.

On the target page you'll need these....

<a name="one">Something here. Possibly just the first word of a
paragraph.</a>

They represent markers to automatically scroll to. You could have one
of them. You could have 1000 of them on a page.

Then you would format a link to the page and specific location like
this...

<a href="URL#one">Click Here</a>

So you are just adding #one (or whatever you want to name the point)
directly after the URL.

Just apply that to your frame links.

  Reply With Quote
Old 12-23-2004, 01:36 PM   #6
Ed
 
Posts: n/a
Default Re: Link to a specific point in a frameset

wrote:
> Frames do still have a valid use in online application style pages, so
> I assume that's what this is for.
>
> On the target page you'll need these....
>
> <a name="one">Something here. Possibly just the first word of a
> paragraph.</a>
>
> They represent markers to automatically scroll to. You could have one
> of them. You could have 1000 of them on a page.
>
> Then you would format a link to the page and specific location like
> this...
>
> <a href="URL#one">Click Here</a>
>
> So you are just adding #one (or whatever you want to name the point)
> directly after the URL.
>
> Just apply that to your frame links.
>

But the target page is defined as a 3-frame frameset. Even if I set up
a labelled position in one of these frames as you describe using the
name= construct, the link that you've given will only take me to the
frameset itself. It will not make one of the frames scroll to the
desired labelled position.

Ed

  Reply With Quote
Old 12-23-2004, 01:47 PM   #7
Ed
 
Posts: n/a
Default Re: Link to a specific point in a frameset

Steve Pugh wrote:
> On Wed, 22 Dec 2004 21:55:24 +0000, Ed <ex@directory> wrote:
>
>
>>I want to create a link from one framed webpage to another webpage which
>>is defined as a 3-framed frameset in which there is a long menu on the
>>left-hand-side which scrolls within its own frame.
>>
>>I have no problem creating a link to the frameset itself using the <a
>>href="second_frameset.htm" TARGET="_top">click to see</a> construct. But
>>what I really would like to do is to link to the frameset AND
>>specifically to a defined (or labelled or named) point in the scrollable
>>menu frame on the left-hand-side.
>>
>>I am at a total loss as to how to format the link which will take me to
>>the new frameset with the specified menu item on display.

>
>
> <a href="second_frameset.htm?foo" TARGET="_top">some link text that
> descibes the target resource a damn site better than "click to
> see"</a>
>
> Then you use JavaScript to read the value 'foo' and scroll the framed
> page to the appropriate location. It's a right pain and obviously not
> possible if the new frameset isn't part of your site.
>
> This is just one of the reasons why frames are a bad idea.
>
> Steve
>


Steve,

Yes, that sounds like a good solution to me and should do exactly what I
want. So thanks for that.

The new frameset is indeed part of my own website (which I only use for
private purposes and it is not available to the general public) so there
are no problems for me to add location markers to one of the frames in
the new frameset.

But, a couple of questions as I am quite new on all this:

Is the question mark in

<a href="second_frameset.htm?foo" TARGET="_top">

intended or should that be a hash mark?

Secondly, do you know of a good source that would help me write the
Javascipt along the lines that you indicated?

Once again, thanks for all your advice,

Ed
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump