PDA

View Full Version : Iframe SSI script II will not resize...



pcoles
12-05-2006, 12:42 AM
1) Script Title:
Iframe SSI script II
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm
3) Describe problem:
I am trying without any success to get this script to work on a page that I am making. Whenever I set it up on a page though (in Firefox):

currentfr.contentDocument.body.offsetHeight
will always evaluate to 0, so the iframe will not get resized. Likewise, when I try it in IE it will not expand either. More so, the result (in Firefox) is a small, default height iframe with scroll bars (horizontal and vertical) to see the full page, which is another local HTML page containing divs and text.

Is there anything that could be causing this?
- other javascript?
- divs? I tried set all divs to {display: block}
- CSS may do something evil??

Any help will be greatly appreciated.

Regards.

jscheuer1
12-05-2006, 07:39 AM
Are you using absolute positioning or floats on the page(s) loaded into the iframe?

pcoles
12-05-2006, 08:45 AM
yeah... i finally figured that out just before your post. Since I was using absolute positioning it had nothing to resize. Onward I go with the magical world of float...

btw, if anyone else out there doesn't understand float, here's a really good page for explaining float that I found: http://www.barelyfitz.com/screencast/html-training/css/positioning/