On 08/02/2008, artemy tregoubenko <[EMAIL PROTECTED]> wrote: > > On Fri, 08 Feb 2008 13:23:48 +0300, Richard Quadling > <[EMAIL PROTECTED]> wrote: > > > > > On 08/02/2008, artemy tregoubenko <[EMAIL PROTECTED]> wrote: > >> Hi, > >> > >> My site will respond with 503 http code while in maintenance. I want to > >> handle this response in ajax requests. Prototype's onXYZ ajax handlers > >> suit perfectly for this task. Except for one thing: these handlers > >> aren't > >> called when specified in Ajax.Responders, so I will have to include them > >> in every request. This is highly inconvenient : ( > >> > >> This problem can be easily solved with just one extra line in > >> respondToReadyState (patch applied, and I can post it in trac too), but > >> this requires code to be included in core prototype, as handling the > >> situation in custom wrapper isn't too easy. > >> > >> Are there objections against supporting onXYZ handlers in > >> Ajax.Responders? > >> > >> -- > >> arty ( http://arty.name ) > > > > I've already submitted a more encompassing patch to allow onXYZ and > > still allow onSuccess/onFailure. > > > > http://dev.rubyonrails.org/ticket/9690 > > > > Great! Though I'm not sure that existence of onXYZ responder should cancel > onSuccess/onFailure, as this creates multiple ambiguities/problems you've > noted in comments to that issue.
I'm not so sure. If you have them defined for the current request AND you have onxyz as a global responder ... By allowing the global responder to return true/false, you can say what you want to happen in the current request. That is the idea. But even though I use this patch all day, I'm not sure what the core team think on it. -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" 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-core?hl=en -~----------~----~----~----~------~----~------~--~---
