468,484 Members | 2,032 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,484 developers. It's quick & easy.

Loading Iframes

Hello fellow web tech's,


I have 3 different iframes on my main page (index.html).
There are 3 links; Movies, TV Shows and Documentaries.
Each links 3 different pages (movies.html, shows.html & documentaries.html) into the 1 iframe named "movielist".

What i want:

Now from there i want each movie title link within the iframe "movielist" to load 3 different iframes into the main page (index.html);

#1 (The actual movie - iframe name="movies") HTTP * This i figured out with ;

<a href="" target="movies">Click for New iFrame Content</a>

#2 (The movie Name - iframe name="moviename") TEXT
#3 (The movie description - iframe name="moviedescription") TEXT

Is this done through parent references or how abouts do i go abouts doing this..

If your having troubles understanding what i mean,

Check out:

I included the iframe names outside of the actual iframe so you can see which sections have to be loaded.

Thanks for your time & responces!
Jan 17 '08 #1
1 1380
16,027 Expert Mod 8TB
Welcome to TSDN!

If you want this to be done with one click, you will need to use JavaScript to load content into the iframes using the frame hierarchy. To access the main page from within an iframe, use parent or top. Then to access another iframe, use frames[frameName]. If you want to set the text, you may want to access an element first and then set its innerHTML property.
Jan 17 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by fniyogi | last post: by
1 post views Thread by ErnDissla | last post: by
reply views Thread by Twinkles | last post: by
1 post views Thread by jnbbender | last post: by
reply views Thread by NPC403 | last post: by
2 posts views Thread by gieforce | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.