When XMLHttpRequest gets error 0 it means there is no connection and most of the times you just want to retry in some time.
Is there a simple way to transparently retry the XMLHttpRequest notifying the user the connection is lost (just like gmail does)?
(I am using jQuery)