Using jQuery\'s $.ajax() function. Wherether the request has been purposely aborted, or if the server is down (not responding) it appears the same outcome happens;
You could track aborts separately in a wrapper around xmlHttpRequest.abort.
xmlHttpRequest.abort