1152 shaares
4 private links
4 private links
Un exemple pour détecter une erreur lors de la méthode load de jQuery
$( "#success" ).load( "/not-here.php", function( response, status, xhr ) {
if ( status == "error" ) {
var msg = "Sorry but there was an error: ";
$( "#error" ).html( msg + xhr.status + " " + xhr.statusText );
}
});