471,045 Members | 1,046 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,045 software developers and data experts.

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 1434
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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.