views:

230

answers:

1
$("div.content-left > *, div.content-main > *" ).live('resize',function(){alert("Size changed")});

does not work, because the resize event only applies to window resizes. But in my case the divs change size late, because the content is loaded late by an ajax request - or by clicking a panel menu. I definatley need to avoid to register on all individual events of the children (ajax, click), because that can be very many different events and then it is not maintainable.

A: 

Maybe you can find this solution useful:

Create a jQuery special event for content changed: http://stackoverflow.com/questions/1449666/create-a-jquery-special-event-for-content-changed

and adapt it to check wether div's size has changed.

mamoo