I would like to know how timeouts (case where server is down) can be handled for a AJAX call. I am using Chrome v28.
I did a lot of search on google and couldn't find any convincing answer other than checking for status == 0 on the readystate callback function. Is this the only way of handling it? I am not using Jquery or any other frameworks.