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.

-- 
arty ( http://arty.name )

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to