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 -- ----- 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 prototype-core@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---