You are here: Re: Can someone please point the way? IFRAME troubles « HTML « IT news, forums, messages
Re: Can someone please point the way? IFRAME troubles

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

 

Navigation:

[Reply to this 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

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