Hi Mike,

we use JavaScript to do this.

Put a function in the page containing the iframe that will set the height of the frame:

<script language="JavaScript">
        function setFrameHeight(height) {
                document.getElementById('theframe').height = height;
        }
</script>

and then call this function from the page that is loaded into the frame:

<script language="JavaScript">
                        try {
                                parent.setFrameHeight(550);     
                        }
                        catch(e) {}
</script>

But JavaScript will only do this if the two pages come from the same server (same domain name)



Am 25.07.2006 um 21:44 schrieb Chip Myers:

Hi, I'm trying to create a WOIFrame which changes it's frame height dynamically, depending on the height of the page it displays.  For example, if the inner page contains no data, I'd like the WOIFrame to have a height of 0 pixels.  If the inner page contains a few entries, I'd like it to expand to say...  100 pixels.  If the inner page contains a large amount of data, I'd like it to expand to a maximum length of 400 pixels, and also display a scrollbar.  Are there any easy ways to do this?

 Thanks,
 Mike
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ jgrathwohl%40web.de

This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to archive@mail-archive.com

Reply via email to