You shouldn't ever need to probe those individual states when using jQuery to make an Ajax connection. The function
supports the "
", and "
" parameters that let you fire your own custom code for any of the relevant Ajax outcomes. Something like:
alert('Error fetching content.<br />Server Response: '+ajaxrequest.responseText)
Native XMLHttpRequest states like 1 or 2 don't ever fire at all in some browsers, so they are not reliable anyway.