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 21:42

endlesstide@gmail.com wrote:
> 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')

Time to start debugging :-)

Put this line somewhere in your "internal" IFRAME page:

alert(parent.name);

It should say "frameA". If it fails or gives the iframe name
"internal", then IE thinks whatever's in the IFRAME has no permission
to break out of its box... in which case, IE limits parent and top to
the IFRAME itself.

Oh, and is it _exactly_ the same domain? Otherwise search the news
group for "cross domain scripting" help.

Etc. 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

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