By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,144 Members | 972 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,144 IT Pros & Developers. It's quick & easy.

Loading Iframes

P: 2
Hello fellow web tech's,

Problem:

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="http://85.17.221.15/include/players/playerdivxframe.php?url=2085206" 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
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
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.