View Full Version : Autoresizing Iframes depending on content?

03-30-2007, 01:21 PM
Is it possible to make an Iframe that automatically "expands" downwards to
fit the html page that is put into it?

Dhen using normal frames they expand down just as normal no-frame pages do,
but if I replace my old frame structure with iframes it seems to require a fixed
height of those iframes, which would negate my purpose of changing to iframes.

Ofcourse, I can adapt and overcome, but it would be easier if the iframe
expanded downwards itself just like normal frames.

03-30-2007, 01:41 PM
Well, there are scripts for that but, IMHO they aren't anywhere near as reliable as using regular frames. Also, there isn't much advantage to using iframe instead of frame. Another problem with adjustable iframes is that they are javascript dependant. Here's one such script:


You may wish to use Ajax, there are several scripts on this index:


But, if you can get it to work with regular frames, I think that you are much better off.

03-30-2007, 01:45 PM
Well, I am using regular frames right now, but I want things to appear as if it is
just a single big page, with a scrollbar for the whole page on the right side,
which isn't possible with normal frames.

As far as I know anyway.

But yeah, looked into some of the dynamic stuff myself, and it doesn't feel very
comfortable using them, rather think I just find the largest page and make the
main iframe that size instead.

Thanks for the reply anyway. :)