Hi,
I am trying to insert a blob of html with images into a div and then get the height of that div after the html blob has been loaded into it from the server. If i do this in a click event i.e. insert the html into my jQuery target and then after that get the height of the target it doesnt wait until the html and images have been loaded into the page. Anyone know how i can pause the .height event until the .html event content has been downloaded from the server?
$('.tabs dd').click(function() {
$('.target').find('.tabContent').html('<p>test content with images</p>');
var tabHeight = $('.target').height();
});
Thanks!