Hello and welcome to our community! Is this your first visit?
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
    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:
    further information/sub-navigation
    content box

    (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
    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
    <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 02: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