jimfog Posted March 24, 2021 Share Posted March 24, 2021 now...when error callback of ajax request fires I just display a message to the user....but how am I going to be notified for the reason the request failed...I mean me the dev. Of course I have not intention showing technial details to the end user..the aim is that such info(must somehow reach me)..any suggestions? Link to comment Share on other sites More sharing options...
Ingolme Posted March 24, 2021 Share Posted March 24, 2021 The HTTP status (requestObject.status) will usually provide some useful information. It will provide a number returning one of the codes listed on this page: https://www.w3schools.com/tags/ref_httpmessages.asp If the user's internet was offline at the time, the status code would be zero. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now