Log in

View Full Version : Iframe link to Outside Iframe



kermit_cof
06-27-2005, 01:39 PM
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??????? :mad:

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

Please help!!!!!!!!!!! :confused:

Thanks in advance!

jscheuer1
06-27-2005, 04:34 PM
<body onload="parent.InfoBox.location.replace('info.htm#page5')">or:
<body onload="parent.InfoBox.location.href='info.htm#page5'">The first leaves the history stack unchanged, the second adds to the history stack.

kermit_cof
06-29-2005, 07:20 AM
It works!! Thanks a great deal!!!

Cheerz