let me change that - i actually went and looked at the place i had this working and it goes like this -
$('#fileTreeIframe').load( function() { var $ifbody = $(this).contents().find( 'body' ); $ifbody.css( 'height','auto' ); $(this).height( $ifbody.height() ); }); ...need more coffee. On Jan 25, 7:36 am, dbzz <j...@briskey.net> wrote: > see if this works. chances are that the iframe content hasn't loaded > yet when onready runs, so bind the height change to the iframe load > callback. > > var $ifbody = $('#fileTreeIframe').contents().find( 'body' ); > $ifbody.bind( 'load', function() { > $('#fileTreeIframe').height( $ifbody.height() ); > });