AJAX Timeouts with Prototype
Jason have an interesting post on AJAX Timeouts with Prototype, excellent to solve the network issues and keep control on it. A feature that Gmail handle it very nicely by displaying an alert message when there is network problems. The code is commented and its very well self explanatory
I’ve been implementing some AJAX goodness in Mayday and other FastFrame apps lately. In my reading of the various pitfalls of AJAX one that popped up repeatedly was how to handle gracefully a network outage or the webserver going down. For example, Gmail’s chat handles it nicely. When I turn off my airport connection Gmail chat lets me know that it can’t contact the server and maybe my connection is down. Much better than an endlessly spinning hour glass, or worse, not letting the user know their action was never completed.


Subscribe to AJAX Magazine's feed