• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOIFrame Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOIFrame Question


  • Subject: Re: WOIFrame Question
  • From: Jan Grathwohl <email@hidden>
  • Date: Wed, 26 Jul 2006 09:36:12 +0200

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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >WOIFrame Question (From: Chip Myers <email@hidden>)

  • Prev by Date: Re: WWDC WO Meet Up List
  • Next by Date: undo manager is in invalid state
  • Previous by thread: WOIFrame Question
  • Next by thread: undo manager is in invalid state
  • Index(es):
    • Date
    • Thread