MartinBorthiry wrote:

 I'm trying to do this:

 $(document).resize(function(){alert('yea')});

 but doesn't work on firefox or chrome,  only work fine on IE (WTF!)

 I'd tryied $('body').resize...  but happen the same.

 $(window).resize  work fine but i need to detect when the body's
height has been changed by ajax.

As far as I know, resize is only supposed to fire
when an actual window (or iframe) is resized. The
IE behaviour is a bug.

As for doing what you want to do, I have no idea,
but at least you can stop trying to catch a resize
event for "body". That won't happen in Firefox
and Chrome (except, perhaps, if you can get your
page to trigger quirks mode, but I wouldn't recommend
going down that path...).

--
Bertilo Wennergren <http://bertilow.com>

Reply via email to