Page 1 of 1

iframe problem

Posted: Sat Aug 07, 2004 2:11 am
by John Cartwright
How can I make an iframe the size of the page it is containing.

For example, it's source is 600 px, I want the iframe to stretch to 600px instead of simply getting the scroller.

I tried simply setting the height to 100% but that only fills the iframe to the maximum height of it's container.

Any help is much appreciated; TY/

Posted: Sat Aug 07, 2004 2:26 am
by feyd
generally, I've had to add some scripting to "measure" the contained text, and use the style accessors to switch the height.

Posted: Sat Aug 07, 2004 2:54 am
by John Cartwright
Feyd, I have no idea how that can be done.

how on earth to we measure a site's height?

Posted: Sat Aug 07, 2004 3:09 am
by feyd
It's been a while since I've had to do it, but I remember having a quick interval set up while the page was loading, checking all the divs, or maybe div in this case, and continuously reading their dimensions, and adjusting the iframes dimensions to match. Sorry, I can't be a whole lot better than that. :D

Thinking about it, Tigra has a dynamic scroller that does this basically.

Posted: Sat Aug 07, 2004 3:13 am
by John Cartwright
What's Tigra?

google found there are a bunch of trigra scrollers...

can't quite find what you are talkinga bout tho...

if you got the link handy somehwere... :P

Posted: Sat Aug 07, 2004 3:16 am
by feyd

Posted: Sat Aug 07, 2004 3:19 am
by John Cartwright
thats brinigng up a: The page cannot be displayed

and that site doesnt look open source :P grr

Posted: Sat Aug 07, 2004 3:45 am
by feyd
the non-pro stuffs is free to use..