Answers for "return error response in ajax"

8

ajax error

$.ajax({
    type: "post", url: "/SomeController/SomeAction",
    success: function (data, text) {
        //...
    },
    error: function (request, status, error) {
        alert(request.responseText);
    }
});
Posted by: Guest on October-14-2020
0

ajax failure response

error: function(xhr, status, error) {
    alert(xhr.responseText);
 }
Posted by: Guest on January-20-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language