1$.ajax({
2 type: "post",
3 data: {id: 0},
4 cache: false,
5 url: "doIt.php",
6 dataType: "text",
7 error: function (request, error) {
8 console.log(arguments);
9 alert(" Can't do because: " + error);
10 },
11 success: function () {
12 alert(" Done ! ");
13 }
14});