How to resize iFrame via jQuery?

7331

New Member
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:\[code\]$("#IframeId").load(function() { $(this).height( $(this).contents().find("body").height() );});\[/code\]Is the \[code\].find("body")\[/code\] 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:\[code\] alert($(this).height( $(this).contents().find("body").height()));\[/code\]I don't see the alert.
 
Back
Top