Topic: iFrames Height |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: North Bay, Ontario, CA |
posted 08-06-2003 20:55 |
Bipolar (III) Inmate From: North Bay, Ontario, CA |
posted 08-06-2003 21:49 |
Nervous Wreck (II) Inmate From: |
posted 08-18-2003 22:27
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 |
posted 08-18-2003 22:50
Maybe show KARN the actual script while you're at it? ... |
Nervous Wreck (II) Inmate From: |
posted 08-19-2003 16:43
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: |
posted 08-20-2003 22:39
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: |
posted 11-06-2004 19:44
Hi MajorFracas, |
Neurotic (0) Inmate Newly admitted From: |
posted 03-27-2005 08:36
I know there would be a very obvious solution to this, but I just can't see it... *blushes* |
Bipolar (III) Inmate From: Florida |
posted 03-27-2005 23:38
Maybe I missed something, but couldn't you just use a <div>? |