How to Manage I Frame height Dynamicaly

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Pirontech
Forum Commoner
Posts: 29
Joined: Wed Oct 28, 2009 5:31 am

How to Manage I Frame height Dynamicaly

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: How to Manage I Frame height Dynamicaly

Post 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.
(#10850)
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: How to Manage I Frame height Dynamicaly

Post 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).
Post Reply