Accessing XMLHttpRequest from the success ajax event in jQuery -


According to the doctor, 'error' the AJAX event has passed the XMLHttpRequest object, not 'success'.

>

It's a shame, because I want to be able to successfully use the HTTP status code. I am doing so successfully with error.

  Error: Function (Data) {Warning (Data.States)}  

Any clue would be great.

Thank you.

You full () Callback in this case, which is generated after success Happens:

  // When a request ends (after the success and error callback is executed) a function to call. // function passes two arguments: // XMLHttpRequest object and a string which describes the success of // type of request. This is an Ajax event full: function (XMLHttpRequest, textStatus) {it; // Option for this AJAX request}  

Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -