Answers for "check ajax error message"

6

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

for check status in ajax javascript

If(xhr.readystate = 4 && xhr.status = 200)
Posted by: Guest on September-16-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language