var jqxhr =
$.ajax({
type: "POST",
url: "/theServiceToCall.html",
data: {
name : "The name",
desc : "The description"
}
})
.done (function(response, textStatus, jqXHR) { alert("Success: " + response); })
.fail (function(jqXHR, textStatus, errorThrown) { alert("Error"); })
.always(function(jqXHROrData, textStatus, jqXHROrErrorThrown) { alert("complete"); })
;