1 (edited by scottywz 2006-03-13 17:10)

Topic: Resizing iframe with window

First, some background info:  I'm using PHP and JavaScript to create a "tabbed homepage" application.  The idea is that you can have multiple "home pages" accessible from one central page, and have it accessible via the Internet (this makes it different from Firefox's multiple homepage feature).

Each tab has an iframe in it.  In this iframe is not the page itself, but one generated by the PHP script providing basic navigational functions (back, forward, etc.), and then the iframe containing the actual homepage.  I am using the WebFX Tab Pane script for the tabs.

Here's the problem:  both iframes have a fixed height: 429 px.  Both iframes need to be resized with the browser window.  Can anyone please help me with this?  (The solution must work in as many browsers as possible, not just Internet Exploder or Firefox.)

I will GPL and release the final script once it's done.

Re: Resizing iframe with window

Set width and height to a percentage?

Re: Resizing iframe with window

Width is a percentage.  You can't set height to a percentage and have it dynamically resize.  I think JavaScript would do it, but I have very little JavaScript knowledge.