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).


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 &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to