PDA

View Full Version : iframes: targetting multiple iframes externally



rice-daddy
Jan 21st, 2007, 08:42 AM
Is this even possible?

I have a main page that has no iframes. I have a "watch" section with videos w/ 2 iframes: video and shows.

I want to link directly to a video in the "watch" section from the main page.

thanks

Majoracle
Jan 21st, 2007, 10:19 AM
I've never done this, but I assume it's the same as framesets. In which case:

Link to video:
<a href="link_to_watch_video_page" target="watch">Watch Video</a>

iFrame:
<iframe name="watch"></iframe>


Make sure the target in the anchor matches the name of the iframe. That SHOULD work.

rice-daddy
Jan 21st, 2007, 12:14 PM
well no that wouldn't work.

basically i want to have a link on the main page. this page has NO iframes in it. the link leads to a page (watch page) WITH iframes. I want to specify which pages to load in which iframe FROM the main page.

bin
Jan 21st, 2007, 01:28 PM
Can't you just link with .php?,

rice-daddy
Jan 21st, 2007, 10:07 PM
can you elaborate more? thanks

_Aerospace_Eng_
Jan 21st, 2007, 10:31 PM
You'll need to use javascript to load more than one page at a time. Something like this should work

<a href="link_to_videos" target="videos" onclick="window.frames['shows'].location = 'link_to_shows'>Watch</a>