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