On 9/14/06, Juergen Schreck <[EMAIL PROTECTED]> wrote:
>
> Fairly new to AJAX and this Async stuff...
>
> The errback callback is only invoked upon HTTP header status codes I
> assume.
>
> So the question is, what is a good model to communicate application
> level messages and errors?
>
> E.g. I'm doing a POST to insert a database record. Assume this fails
> on the and I want to have my client-side to handle this gracefully.
> Same would go for server side validation of other sorts. What's a
> good way to send this meta-data back which is easy to use by the client?

You can use an error status code and you'll get the error object in
the errback. You can still get at the XMLHttpRequest from that error
object.

http://mochikit.com/doc/html/MochiKit/Async.html#fn-xmlhttprequesterror

-bob

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" 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/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to