Linking in Inline Frames


J

Julie

I want to create a news/events page that has a list of article/event
titles on the left and includes an inline frame with the actual stories
on the right. I created a page for the stories (stories.htm) and set
up an inline frame on the "News" page (news.htm). I set the initial
page in the inline frame to the "stories" page. So far so good.

My question is:

Is there any way to link from my list of titles to the stories on the
stories page (that appear in the inline frame) so that when the title
is clicked the matching story scrolls to the top of the inline frame?

I tried using bookmarks, etc., but I can't get the specific story to
scroll to the top of the inline frame? Is this even possible?

Thanks in advance!
 
Ad

Advertisements

T

Trevor L.

I'll have a go at this

Each story title on the stories page should be defined like this
<a name="Title1"></a>Story No 1
<a name="Title2"></a>Story No 2
etc.
where the text after the </a> can be any descriptive title

Each story title on the news page should be defined like this:
<a href="stories.htm#Title1">Story No 1</a>
<a href="stories.htm#Title2">Story No 2</a>
where the text before the </a> should be the same descriptive titles
and Title1, Title2 must match exactly

Title1, Title2 on the news page will be hyperlinks, and clicking on one will
bring the correspondong title on the stories page to the top.
--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au
I want to create a news/events page that has a list of article/event
titles on the left and includes an inline frame with the actual
stories on the right. I created a page for the stories (stories.htm)
and set up an inline frame on the "News" page (news.htm). I set the
initial page in the inline frame to the "stories" page. So far so
good.

My question is:

Is there any way to link from my list of titles to the stories on the
stories page (that appear in the inline frame) so that when the title
is clicked the matching story scrolls to the top of the inline frame?

I tried using bookmarks, etc., but I can't get the specific story to
scroll to the top of the inline frame? Is this even possible?

Thanks in advance!


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
S

Stefan B Rusynko

FYI
Incorrect syntax for the links in the IFrame - they should be
<a name="Title1">Story No 1</a>
<a name="Title2">Story No 2</a>

And to call the bookmarks or links in a frame (or IFrame) you need to reference the frame in the link
See http://www.quirksmode.org/js/iframe.html


--




| I'll have a go at this
|
| Each story title on the stories page should be defined like this
| <a name="Title1"></a>Story No 1
| <a name="Title2"></a>Story No 2
| etc.
| where the text after the </a> can be any descriptive title
|
| Each story title on the news page should be defined like this:
| <a href="stories.htm#Title1">Story No 1</a>
| <a href="stories.htm#Title2">Story No 2</a>
| where the text before the </a> should be the same descriptive titles
| and Title1, Title2 must match exactly
|
| Title1, Title2 on the news page will be hyperlinks, and clicking on one will
| bring the correspondong title on the stories page to the top.
| --
| Cheers,
| Trevor L.
| Website: http://tandcl.homemail.com.au
|
| Julie wrote:
| > I want to create a news/events page that has a list of article/event
| > titles on the left and includes an inline frame with the actual
| > stories on the right. I created a page for the stories (stories.htm)
| > and set up an inline frame on the "News" page (news.htm). I set the
| > initial page in the inline frame to the "stories" page. So far so
| > good.
| >
| > My question is:
| >
| > Is there any way to link from my list of titles to the stories on the
| > stories page (that appear in the inline frame) so that when the title
| > is clicked the matching story scrolls to the top of the inline frame?
| >
| > I tried using bookmarks, etc., but I can't get the specific story to
| > scroll to the top of the inline frame? Is this even possible?
| >
| > Thanks in advance!
|
|
| I choose Polesoft Lockspam to fight spam, and you?
| http://www.polesoft.com/refer.html
|
|
 
Ad

Advertisements

T

Trevor L.

Thnaks, Stefan.

I thought afterwards about the second point (the need to reference the frame
in the link) and was going to check this again today (Australian time)

I guess beginners such as myself should carefully test any suggestions
before passing them on. ;-(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top