Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    1
    Thanks
    0
    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
    sub-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:
    Navbar
    further information/sub-navigation
    content box


    (click)Navbar
    (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.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    funny how u should ask, i've posted a solution to something similar to your question Change multiple frames with one link and just to sum it up for ya, this is how a link would look
    Code:
    <a href="http://www.codingforums.com" target="top" onclick="parent.document.getElementById('main').src='http://www.yahoo.com';">
    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 frame
    Last edited by _Aerospace_Eng_; 03-09-2005 at 01:45 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •