I'm having a little trouble understanding you because I think you aren't using the technical terms I am used to when describing the situation. I do understand the overall idea pretty much though.
To get an iframe to run a function on the top page, say the function on the top page is:
Code:
function hi(){alert('Hello!');
In the iframe you would call:
If you have:
HTML Code:
<ul id="countrytabs" class="shadetabs">
<li><a href="#" class="selected" rel="#default">Tab 1</a></li>
. . .
and:
Code:
var countries=new ddajaxtabs("countrytabs", "countrydivcontainer")
. . .
on the top page, you should be able to do this from inside the iframe:
HTML Code:
<a href="javascript:top.countries.expandit(0);">Whatever</a>
to create a link to the default tab that will be displayed in the tabs. However, passing information to it, will not work using this method. You may need to reload the top page in order to do that, or at least modify the script somewhat. Are you trying to pass information from the iframe to the top page, or just trying to get the top page to display its default content that it has stored in a javascript variable?
Bookmarks