Finding Previous Floatboxes

Page: 1

Author Post
prathapmk
Guest
Hii,

I got 3 levels of floatboxes. Each created by clicking on a link placed on each pages inside the floatboxes. From the page inside third floatbox, i want to call a javascript function wriiten inside the page2 placed in floatbox 2. How can i call that javascript function, or get the reference to the document placed inside the floatbox 2?.

Thanks in advance.

Regards,
Prathap.
Administrator
Registered: Aug 2008
Posts: 3382
Greetings from Koh Chang.

Please see this post in the forum: http://floatboxjs.com/forum/topic.php?id=100
And similar info in the instructions at http://floatboxjs.com/#program

There's enough in there to get you to the second floatbox's document element. If you have the document element in a var named doc, you can get the iframe window object with:
win = doc.defaultView || doc.parentWindow || doc.contentWindow;
That gets the window in everything except Safari pre 3.0.
See http://code.google.com/p/doctype/wiki/ArticleParentWindow if you need Safari 2.x window object support, and give me a shout if you need more info or clarification.

Cheers...

Page: 1