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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -