Hi
I was wondering if there is a standard way to set a time out for ajax callbacks. The problem seems such an obvious one I know that it will have been solved several times.
I'm using the google maps and google local api's and I want to wrap my ajax calls such that if the servers don't respond within a certain amount of time, then my code can recover and go on with out the information.
I have been thinking about writing a class whose objects would wrap any ajax request in such a way as to behave nicely, but surely this has already been done.
I have tried searching for this information (admittedly not as hard as I should have), but the material seems quite fragmented. If someone could just point me in the right direction with a link then that would be very much appreciated.