Wednesday, August 6, 2014

force jQuery's .ajax to run synchronously with async:false

$.ajax({
   type: "DELETE",
   url: '/api/Person?identity=' + $('#FlatIdentity').val(),
   dataType: 'json',
   success: function() {
      isBlinkingDeleteAccountButton = false;
   },
   async: false
}); alert('this is after it all');

No comments:

Post a Comment