i have the iframe hardcoded in the html. if you are adding it to the dom with js, it won't get the load event binding. you might try livequery or something like it.
On Jan 25, 10:21 am, "laredotorn...@zipmail.com" <laredotorn...@zipmail.com> wrote: > Hi dbzz, > > I tried the code you provided, but went from this ... > > http://screencast.com/t/W8lOtgKO > > to the iframe disappearing entirely ... > > http://screencast.com/t/jCTjOLhpeX > > I put your code in a $(document).ready() block (below). Are there any > other modifications I should make to get it to display at 100%? > > $(document).ready(function() { > $('#fileTreeIframe').load( function() { > var $ifbody = $(this).contents().find > ( 'body' ); > $ifbody.css( 'height','auto' ); > $(this).height( $ifbody.height() ); > }); > }); > > Thanks, - Dave