An alternative i sometimes use is to set a timeout on a function to check 
within a period of time - usually a hidden input with the time of the 
request - checking it until its complete

That way i can know if anyting failed in the request and send it again if it 
did ...

each to their own !

Alex Mcauley
http://www.thevacancymarket.com
----- Original Message ----- 
From: "Walter Lee Davis" <wa...@wdstudio.com>
To: <prototype-scriptaculous@googlegroups.com>
Sent: Tuesday, December 22, 2009 3:54 PM
Subject: Re: [Proto-Scripty] Re: Ajax.Request


> This is an important thing to work on. If I know I will be using
> onError on the client side, I make sure that my Ajax endpoint on the
> server will return a "real" error header using PHP's header() method.
>
> You can also get very fancy with different error header codes, too,
> throwing a distinctly different error depending on the nature of that
> error, and then handling it in the Ajax callback using one of the
> onNNN methods instead of onError (which covers any error between 400
> and 5NN, IIRC).
>
> Walter
>
> On Dec 22, 2009, at 10:21 AM, Alex McAuley wrote:
>
>> 2. Server side scripts (will return whitespace upon an error - if
>> error
>> reporting is turned off) and this is still considered a success by
>> javascript.
>
> --
>
> 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 
> prototype-scriptacul...@googlegroups.com.
> To unsubscribe from this group, send email to 
> prototype-scriptaculous+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/prototype-scriptaculous?hl=en.
>
>
> 

--

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 prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.


Reply via email to