I dont believe there is a way to tell whether the server is alive or not
before you try to connect to it.
if you  listen on the jQuery Ajax event "ajaxError"
you will be able to get the HttpStatus from the request object.
I am not sure which code means the server is down, but you will be able to
tell.
I am not sure if this is the best practice, but thats how i do similar
things.

Reply via email to