I've been trying to adjust the size of an iFrame based on its content by using info from here. His demo is located here.
I am using the following:
$("#IframeId").load(function() {
$(this).height( $(this).contents().find("body").height() );
});
Is the .find("body")
checking for "body" in the header section of the inner iframe content? I do see that in the hosted page.
I also added the following to the above code:
alert($(this).height( $(this).contents().find("body").height()));
I don't see the alert.