0

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());
});
Sergey Kudryashov
  • 713
  • 2
  • 9
  • 30

1 Answers1

0

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

Trigger event using Jquery on CSS change?

How do I detect iframe resize?

Community
  • 1
  • 1
Matt Urtnowski
  • 2,556
  • 1
  • 18
  • 36