jquery ajax with async false hangs firefox -
i have code calls $.ajax :
$.ajax({ type: "post", url: "/sandbox/graphloader/mock3", async: false, data: {calinput1:dates[0], calinput2:dates[1]}, success: function(data){ data=eval(data); for(var x in data[0]){ //alert(data[0][x]); //fill columns here; } fillpercents(column); }});
now, works in browsers, other firefox. firebug shows getting reply post, unknown error, not displaying data. might problem ?
this behavior design.
never use async: false
.
since javascript runs on ui thread, async: false
request freeze browser until server replies.
Comments
Post a Comment