[jQuery] Safari: $.post/$.get with empty response/ check for status of response?
Hi jQuerians,
if you use $.post/$get, you must always return a response, otherwise
Safari does not play in the game... Other browsers assume an empty response.
Safari although seems to respond nothing. status, statusText and so on
are undefined.
So even if you don't need the response for anything because for example
you posted something to be saved somewhere in a database, you must at
least send an empty string " " as response.
I assume, this is the correct behavior anyway, otherwise it would be a
HEAD request, right?
Anyway, just wanted to share, just in case someone forgets to send
something in the response...
But this brings me to another question: shouldn't we check in $.xml not
only for the readyState but also for the status of the response?
Anything else than 200 is not useful anyway...
Regards, Klaus
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/