Is there any way to make an <iframe> autostretch? To take the height of the page that is inside the frame?
I dont think it is possible, but if it is, I am sure one of you out there will know how to do it.
papabaer
9:53 pm on Jun 25, 2002 (gmt 0)
None that I have ever heard of Kris. Iframes can be flexible and expand with page resizing of the page the iframe resides on, but to resize according to a particular content page is something quite different. It might be possible with some very complex scripting, it also deviates from the original purpose of an iframe as an inline element.
I would consider pursuing other options for both practical and usability reasons.
Purple Martin
12:01 am on Jun 26, 2002 (gmt 0)
I actually had to do this once, but unfortunately I don't have the source any more. Put the IFrame in an absolutely positioned containing DIV. Use JavaScript to get the height of the document within the IFrame and then adjust the height of the containing DIV accordingly. The JavaScript can be in either the parent document or in the document that's in the IFrame, you just need appropriate object referencing.