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

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -