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
How to Manage I Frame height Dynamicaly
Moderator: General Moderators
- 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
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)
- 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
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).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.