Forse l'hai già vista http://api.jquery.com/jQuery.ajax/
codice:
var jqxhr = $.ajax( "example.php" )  .done(function() {    alert( "success" );  })  .fail(function() {    alert( "error" );  })  .always(function() {    alert( "complete" );  });
e sempre che abbia capito cosa devi fare