Page 1 of 1

How to Manage I Frame height Dynamicaly

Posted: Sat Apr 24, 2010 3:19 am
by Pirontech
Hi,

How to Manage I Frame height Dynamicaly as per the content height, the content pulled from the data base and its size and data is dynamic. then how manage the iframe to scale as my content fit in the page..


Please REply.

Thanks in Advance

Re: How to Manage I Frame height Dynamicaly

Posted: Sat Apr 24, 2010 11:49 am
by Christopher
The frame or iframe has height and width properties that can be set with Javascript. Use the parent object to access them from within the frame.

Re: How to Manage I Frame height Dynamicaly

Posted: Sat Apr 24, 2010 11:58 am
by John Cartwright
Christopher wrote:The frame or iframe has height and width properties that can be set with Javascript. Use the parent object to access them from within the frame.
Just want to note, if you are doing cross frame communication, both the parent and the frame need to belong to the same domain, otherwise you'll run into permission issues (which basically make dynamic resizing impossible on remote content).