Reply to Re: Can someone please point the way? IFRAME troubles

Your name:

Reply:


Posted by jojo on 07/23/06 21:37

endlesstide@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
>
> Hi Kev! This is on the same domain, so no security issues. But, I
> tried both of those top.top.frameB.functionname() and
> parent.parent.frameB.functionname() but it doesn't work (still get the
> 'null or not an object error') Do you think it be something else?
> Thank you so much for looking at this -- this is trying me bonkers!!
>

Don't know if it's the solution, but try top.frameB.document.functionname()

HTH, jojo

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация