I have iframe with auto height. And height is not fixed. How to track it's resizing?
I need something like this:
$('iframe').resize(function(){
alert($(this).height());
});
I have iframe with auto height. And height is not fixed. How to track it's resizing?
I need something like this:
$('iframe').resize(function(){
alert($(this).height());
});
See http://benalman.com/projects/jquery-resize-plugin/
http://benalman.com/code/projects/jquery-resize/examples/resize/
They even have an example called Resizing an Iframe as its content grows
If you can't apply it to the iframe for some reason use a wrapper
This has been asked a couple of times and everyone recommends that plugin
How to detect DIV's dimension changed?
Detecting when a div's height changes using jQuery
Detect height change of a DIV with jQuery using Resize Plugin