jimfog 31 Posted March 24 Report Share Posted March 24 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? Quote Link to post Share on other sites
Ingolme 1,035 Posted March 24 Report Share Posted March 24 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. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.