The synthetic onSuccess, onFailure, and onXXX don't get dispatched to the Ajax.Responders. Don't know if that is by design or just because nobody had has a need for it, but it would be kind of handy.
I've been doing the following for a generic failure handler... pretty - http://gist.github.com/9700 function genericErrorHandling() { alert('do generic error handling here'); } Ajax.Base.prototype.initialize = Ajax.Base.prototype.initialize.wrap(function(p, options) { p(options); this.options.onFailure = this.options.onFailure || genericErrorHandling; }); new Ajax.Request('somepage', { onSuccess: doSomething, on400: handleBadRequest }); This allows me to do any generic error handling if it hadn't already been handled by the other handlers. Darrin --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
