ajax error get output

Solutions on MaxInterview for ajax error get output by the best coders in the world

showing results for - "ajax error get output"
Erik
07 Jan 2021
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});