7 messages in com.googlegroups.google-gadgets-apiRe: Adjusting Height
FromSent OnAttachments
Ayda21 Feb 2008 19:10 
Ayda21 Feb 2008 19:28 
String22 Feb 2008 00:39 
Ayda22 Feb 2008 19:41 
String23 Feb 2008 14:51 
String24 Feb 2008 01:21 
The NOCer26 Feb 2008 05:41 
Subject:Re: Adjusting Height
From:The NOCer (zbes@enernoc.com)
Date:02/26/2008 05:41:09 AM
List:com.googlegroups.google-gadgets-api

have you tried putting _IG_AdjustIFrameHeight(); into a function and having the submit button call that function as well as whatever else it is doing?

On Feb 24, 4:21 am, String <ster@googlemail.com> wrote:

On Feb 23, 10:52 pm, String <ster@googlemail.com> wrote:

Something like this: To the submit button in your HTML, add an onclick event that calls a JS function that sets the document height to 120px, calls IG_AdjustIFrameHeight(), then goes ahead and submits the form (this last being what I referred to as "forwarding").

It occurred to me later that an even easier way would be to simply set the document height and call IG_AdjustIFrameHeight() in the form's onsubmit event, then let the submission continue as normal. Ought to work unless you run into a timing issue with IG_AdjustIFrameHeight (which is also a possibility in the method I outlined above).