Posted by Kevin Darling on 07/23/06 17:07
alxasa@gmail.com wrote:
> <FRAMESET ID="MAIN_BODY" FRAMESPACING="0" ROWS="100%,*">
> <FRAME NAME="frameA" SRC="./contentA.htm">
> <FRAME NAME="frameB" SRC="./contentB.htm">
> </FRAMESET>
>
> 'contentA.htm' has a <IFRAME> inside of it [...]
> So, what I want to do, is from this IFRAME named 'internal', call a
> Javascript function sitting in the contentB.htm file.
>
> I've tried: top.frameB.functionname() but get "frameB" is null or not
> an object.
We have a corporate application that does this all the time. Using
either "top." or "parent.parent." should work fine.
One reason it wouldn't work is if one of the frames actually comes from
a different website. Then security will prevent you from accessing the
other frame.
Cheers, Kev
[Back to original message]
|