[jQuery] When using blogUI and setTimeout in firefox , a strange behavior
Hi all:
When i using blogUI in firefox(ie 6.x and ie7.0 are ok), there is a
strange behavior.
To avoid the call-stack issue in ie 7.0 , i cant' just write:
$().ajaxStart($.blockUI).ajaxStop($.unblockUI);
I must write :
$().ajaxStart(function(){
setTimeout($.blockUI,0);
});
but... the default message(should be "please wait" ) will become
some integer(maybe 36...).
It looks like:
http://crazylion.files.wordpress.com/2007/11/1.png
otherwise, if i write:
$().ajaxStart(function(){
setTimeout(function(){$.blockUI();},0);
});
it can work correctly now . like http://crazylion.files.wordpress.com/2007/11/2.png
i have no idea about this. Does setTimeout do something i dont
know?
Thanks a lot :)
--CrazyLion