One handler to consider adding to your AJAX requests is on0.  This is  
called if the connection to the webserver fails, typically because the  
the server is overloaded or has gone down since the page was loaded.  
While these conditions are uncommon, otherwise a failed connection  
calls the onSuccess handler!   And if your webserver is overloaded or  
down, it's good to tell your users to wait a bit before trying again.

I've updated the example at 
http://proto-scripty.wikidot.com/prototype:how-to-bulletproof-ajax-requests


Doug Reeder
reeder...@osu.edu
http://reeder29.livejournal.com/
https://twitter.com/reeder29






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to