Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
03-09-2005, 01:30 AM #1
- Join Date
- Mar 2005
- Thanked 0 Times in 0 Posts
Dual iframe loading, or after load - refresh another into separate iframe target
Here's the basic layout of my site:
Horizontal navigation bar
iframe content box
My presumed navigation would have the user click an image in the top Horizontal navbar, which would then load a list of subdirectories and choices in the sub-navigation bar.
I can do that - I'm there so far.
What I've been rummaging around the internet for the past few hours in search of, is -any- kind of code to, after the sub-navigation bar has loaded, to ALSO load a -separate- page into the -separate- iframe content box.
(To further break it down if needed, this is what happens with normal iframes)
Loading the page:
(littlepage loaded) further information
content box stays the same
What I want, is after the first page is loaded into the subnavigation, to also load something in the content box, so I have a sub-nav bar, and more info on that sub-nav bar.
Thanks ahead of time, and my apologies if I was not concise enough. I'll do my best to respond to any questions aimed at me.
03-09-2005, 01:42 AM #2
- Join Date
- Dec 2004
- In a place far, far away...
- Thanked 1,043 Times in 1,019 Posts
funny how u should ask, i've posted a solution to something similar to your question http://www.codingforums.com/showthread.php?t=53764 and just to sum it up for ya, this is how a link would look
give the iframe an id and where u see getElementById('main') replace main with the id of the iframe, and just set the target of the link to the navigation frameCode:<a href="http://www.codingforums.com" target="top" onclick="parent.document.getElementById('main').src='http://www.yahoo.com';">
Last edited by _Aerospace_Eng_; 03-09-2005 at 01:45 AM.