Hey Matthew,

        I ran into that issue as well, where you're not really
expecting the onSuccess event as its timed out, inherently an error
has occurred, as the server has taken longer than allowed.

Take a look at my approach to a resolution to this problem in my
solution to implementing timeout behavior for Ajax.Request.

http://positionabsolute.net/blog/2008/07/prototype-ajax-request-timeout.php




On Dec 3, 4:18 pm, Matthew Reed <[EMAIL PROTECTED]> wrote:
> Hello everyone.
>
> I apologize if this matter has already been dealt with.
> I need to make ajax calls and manage transmission timeouts, so I
> cutandpasted codejanitor's code 
> :http://codejanitor.com/wp/2006/03/23/ajax-timeouts-with-prototype/.
>
> It works but I noticed that calling request.transport.abort();
> triggers onSuccess callback in any case! You can easily reproduce this
> behaviour ptting some alert in onSuccess inside an Ajax.Request call.
>
> I was wondering if this behaviour of Ajax.Request is wanted or is a
> bug of sort.
>
> Thanks for your answers.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to