By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,156 Members | 1,026 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,156 IT Pros & Developers. It's quick & easy.

resizing iframe

P: n/a
I have this problem with iframes:

i want to resize iframe's height when the window inside the frame is
resized or when the src attribute of iframe changes so make the height
of iframe equal to the size window's body scrollHeight so that way i
dont need any scrolls for my iframe but the let page containing the
iframe do the scrolling for the iframe

so how can i make that happen, is one of the iframe events does detect
any changes to the contents inside it or when scr of the frame changes?

or is there an alternative?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
See if there is something useful for you in my case.

On one of my pages, I have an iframe in a table cell. The table has 2 rows.
The top contains a header. The bottom row contains the iframe. The height of
the table is calculated automatically based on the content of some other
cells. Now I want the iframe to resize to fill up tho whole height of the
containing cell. Given the iframe id is frameX, the table id is tableX and
the top row id is trTop, I use the folowing line in the body onload event:

document.getElementById('frmX').height=document.ge tElementById('tableX').off
setHeight-document.getElementById('trTop').offsetHeight;

Eliyahu

"Paul Fi" <na*******@hotmail.com> wrote in message
news:eR**************@TK2MSFTNGP15.phx.gbl...
I have this problem with iframes:

i want to resize iframe's height when the window inside the frame is
resized or when the src attribute of iframe changes so make the height
of iframe equal to the size window's body scrollHeight so that way i
dont need any scrolls for my iframe but the let page containing the
iframe do the scrolling for the iframe

so how can i make that happen, is one of the iframe events does detect
any changes to the contents inside it or when scr of the frame changes?

or is there an alternative?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.