[jQuery] Getting XMLHttpRequest status
Hey, all. I'm sending an AJAX request, and in addition to executing
functions on Success or failure, I want to get the Status of the
XMLHttpRequest object (404, 401, etc). It's passed into the functions,
but I can't figure out how to retrieve it.
$.ajax({
type: "GET",
url: "member_check.php",
dataType: "xml",
error: function(event, XMLHttpRequest, ajaxOptions, thrownError) {
alert( XMLHttpRequest.status ) // << ????
}
)
Any ideas? Thanks!
Corey