Topic: iFrames Height (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: North Bay, Ontario, CA |
![]() |
Bipolar (III) Inmate From: North Bay, Ontario, CA |
![]() |
Nervous Wreck (II) Inmate From: |
![]() I wrestled with the same problem for several days. With some javascript, I was able to resize the iframe to match the content (and get rid of the scrollbar) when the page loaded. But there are some limitations: |
Maniac (V) Inmate From: California |
![]() Maybe show KARN the actual script while you're at it? ... |
Nervous Wreck (II) Inmate From: |
![]() Of course... code: function resizeIframe(id) {
code: onload="resizeIframe('theIframeId');" to the body tag for the page which contains the iframe. Also, change 'theIframeId' to the id of the iframe you wish to resize. |
Nervous Wreck (II) Inmate From: |
![]() Since I've been thinking about this problem, I may as well finish it and give a complete solution. code: onload="if (window.parent && window.parent.resizeIframe) {window.parent.resizeIframe('myFrame');}"
|
Neurotic (0) Inmate Newly admitted From: |
![]() Hi MajorFracas, |
Neurotic (0) Inmate Newly admitted From: |
![]() I know there would be a very obvious solution to this, but I just can't see it... *blushes* |
Bipolar (III) Inmate From: Florida |
![]() Maybe I missed something, but couldn't you just use a <div>? |