Another case:
It could be possible to get a status code of 0
if you have sent an AJAX call and a refresh of the browser was triggered before getting the AJAX response. The AJAX call will be cancelled and you will get this status.
More Related Contents:
- How do I get the HTTP status code with jQuery?
- When I add alert('now it works'); this function works but I don't want this
- System.IndexOutOfRangeException: Cannot find table 0
- Simple jQuery, PHP and JSONP example?
- Intercepting call to the back button in my AJAX application
- Why am I seeing an “origin is not allowed by Access-Control-Allow-Origin” error here? [duplicate]
- Remove hash from url
- Upload base64 image with Ajax
- How does Google Instant work?
- How to call external url in jquery?
- Is there a standard way to encode a .NET string into JavaScript string for use in MS Ajax?
- history.replaceState() example?
- XMLHttpRequest to Post HTML Form
- Multiple ajax calls at same time
- Difference between $.post and $.ajax?
- jQuery ajax and SSL?
- How to show ajax loading gif animation while the page is loading?
- how to know if the request is ajax in asp.net mvc?
- How to remove backslash on json_encode() function?
- boolean variables posted through AJAX being treated as strings in server side
- Set Request Header jQuery Ajax
- Render multiple components with f:ajax
- How to Implement ajax pagination with will_paginate gem
- Mailchimp subscribe using jQuery AJAX?
- Selenium WebDriver – determine if element is clickable (i.e. not obscured by dojo modal lightbox)
- Intercept XMLHttpRequest and modify responseText
- Cross-Origin resource sharing and file://
- What happens when no response is received for a request? I’m seeing retries
- ‘append’ called on an object that does not implement interface FormData
- How to convert a byte array into an image?