Forum Moderators: open

Message Too Old, No Replies

Dynamic iframe height?

Dynamic iframe height

         

Pasqualis

6:44 pm on Jan 20, 2006 (gmt 0)

10+ Year Member



On my site (a vbulletin board) I want to use an IFRAME to show the available houses of a holiday rental site. On this holiday rental site you can do a search for available houses in a selected period/location. The IFRAME would be placed in a table in the middle of my site.

Problem is: I don't want to use scrollbars in my IFRAME, but since it's content is dependent on the search-results, the IFRAME needs to be dynamic all the time.

So now I'm trying to find a script that dynamically resizes the iframe.

Please help me out here :)

kaled

11:22 pm on Jan 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I havent't used it, but this sounds like a job for AJAX (but not IFrames).

If you don't want to use that, you could use an invisible IFrame, and use it's onload event to write to the innerHTML property of a div on your page. This sort of approach would mean dynamic resizing was unnecessary (it would be done automatically).

Kaled.