On 8/17/06, daltonlp <[EMAIL PROTECTED]> wrote:
>
> During development, it's fairly common for an asynchronous request to
> return a response with a 500/"server error" status.  The Deferred
> object uses this status to invoke the Errback function instead of the
> Callback function.
>
> But I've found no way to access the body of the http response.  In many
> cases, the body contains useful information about what caused the
> error.  Not having this available to the Errback method makes debugging
> more of a pain.
>
> I'm new to MochiKit, so I may be missing something.   Is there a way to
> access the raw responseText from within an Errback method?

The XMLHttpRequest Error object has a req property, which is the
original request.

-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