December 2013
Intermediate to advanced
384 pages
9h 54m
English
$.get("getUser.php?first=Brad&last=Dayley", null, function (data, status, xObj){ alert("Request Succeeded"); }), "json").fail(function(data, status, xObj){ alert("Request Failed"); }).always(function(data, status, xObj){ alert("Request Finished"); });
In addition to specifying the success option, the wrapper methods also allow you to attach additional handlers using the following methods:
.done(data, textStatus, jqXHR)—Called when a successful response is received from the server.
.fail(data, textStatus, jqXHR)—Called when a failure response is received from the server or ...
Read now
Unlock full access