Results 1 to 3 of 3

Thread: Iframe link to Outside Iframe

  1. #1
    Join Date
    Jun 2005
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Iframe link to Outside Iframe

    Hi

    This is my first post here @ DD - I hope u guys can help me caus I'm seriously stuck on this problem!!

    Basically, I've got 2 Iframes in my 'Index.htm' with a basic menu system in the Index used to call the links to the 'Main' Iframe.

    IFRAME NAMES AND DESCRIPTIONS:
    ------------------------------------------
    ‘InfoBox’: Positioned as a header, used to display information / description relevant to the file that gets loaded to the Main Iframe via the basic nav system.

    ‘Main’: Main viewable area and where the urls that are in the menu system gets loaded.
    ---------------------------------

    For the record: Because the site is linked to an external programme, I can't let the navigation system send information to both Iframes (due to restrictions).

    THE BASIC FLOW AND MY QUESTION:
    User clicks on link --> Loads relevant page to 'Main' Iframe --> Onload function within the loaded page then loads the page's relevant Info / Description into the 'Info' Iframe.

    The info for each page is stored on one Html with bookmarks for each individual page.

    A normal link to get there would be:
    <a href="info.htm#page5" target="InfoBox">.

    If I make a clickable <a href> link 2 send info to the 'InfoBox' Iframe - then it works.
    But as soon as I do an OnLoad function or use any other script to send stuff to the external Iframe - the 'environment' or IE just doesn't see the external IFrame (InfoBox)?? Why then does a silly <a href> see it and an Onload function doesn't???????

    I think what I need is a script to recognise an external Iframe?

    Please help!!!!!!!!!!!

    Thanks in advance!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Code:
    <body onload="parent.InfoBox.location.replace('info.htm#page5')">
    or:
    Code:
    <body onload="parent.InfoBox.location.href='info.htm#page5'">
    The first leaves the history stack unchanged, the second adds to the history stack.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jun 2005
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Thanks!

    It works!! Thanks a great deal!!!

    Cheerz

Bookmarks

Posting Permissions

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