views:

26

answers:

1

Can anyone help me to differentiate this two line , one is working fine on IE as well as FF, but second is working fine only in FF .

$(window).resize( function() ); // Works in both IE and FF

$(window).unbind('resize').bind('resize', function() ); // Works only in FF 

Thanks in advance

A: 

Try other objects. For example, $(document) or $('body').

If handling resizing is important, i usually create wrapping div and check its width and height on timeout.

Riateche