PDA

View Full Version : Resizing Iframe Without Reloading Parent Page



ninja2001k
04 Apr 2006, 10:44 AM
Hi People,

I was wondering if anyone could give me some help, advice and constructive critism!

I have a page, it has a flash menu embedded at the top in a div, below I have set up an IFrame where I want to load external pages in withough having to reload the parent page.

This works fine upon load, the script i am using http://www.dynamicdrive.com/dynamici.../iframessi.htm does the job good.

but i wish to resize the IFrame for page I am loading into the IFrame, without having to reload the parent page! this is just the height attribute by the way.

any solutions to what i need please? if i reload the parent page the flash menu looses all its settings etc.

thanks in advance people!

Wickham
04 Apr 2006, 12:50 PM
AFAIK an iFrame has to have a fixed size, so each external page if too big will create scrollbars. Others here will tell you to use server-side includes instead of Iframe.

You could make the iFrame big enough for the first page loaded in it and also the external pages (unlikely I suppose).