Forum Moderators: not2easy
Any ideas?
if you know php, or some other server side language, you could introduce the iframe page in a div instead, which would automatically resize with the content. you could even use the overflow property in css to make it look like an iframe if you want, complete with scrollbars.
alternatively assuming you control both pages you can test server side one in some way how much content the framed page will have and dynamically make the iframe the correct size before serving the parent page ... quite complex to do i should think, but absolutely possible
The case where you'd want to use iframes is if you wanted the user to be able to navigate in this little window, without changing the rest of the page.
Another somewhat valid reason, is that it would cache the page, so if it's on multiple pages, it wouldn't take long to load each time. Thing is, with server side includes, the browser will ALSO cache that content too. The only thing that I don't think is cached is the HTML code itself. If you're using proper code, this will almost certainly be in the range of 1-40kb, inefficent code may be larger, but it still may not make a huge difference.
[edited by: Xapti at 12:13 am (utc) on June 23, 2007]