Thanks Mike, very useful.

I think I'm crazy, now the complete handler isn't passed the response 
body but also the XHR object.

That means I have to use $.httpData anyway?


complete: function(xhr, status) {
     if (status == 'success')
         $('#somewhere').html( $.httpData(xhr) );
}


I could swear the complete handler already returned the responsed 
html... time for a break!?


-- Klaus


Mike Alsup schrieb:
> Klaus,
> 
> Both success and complete are passed a 2nd arg which indicates the
> status of the request: 'success', 'error', or 'notmodified'.
> 
> Mike
> 
>> Question: The complete handler is also fired after error. How can I
>> prevent to render a 404 message from the server into the page and
>> instead use some nicer message...?
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to