Ajax behavior when server is down???
I have a jsp which uses JQuery.timer method that runs every 5 minutes. So when triggered the method refreshes a DIV within the page. The ajax call is a simple one, with ONLY Success method defined.
Now if the server locally is shutdown or the user has timed out locally, the ajax method will obviously get an error. However instead of just erroring, its like it is within a loop and keeps trying to call the server.
Is there a config parameter to pass to Ajax method to tell it NOT to try again if failed? Or do I need to supply onError method for every ajax call that I have in the app so it will try once and be done? Do you think it is the timer method that must be interacting with the exception and then trying again?
Any insight as to the processing involved would be much appreciated. Thanks!