From: John Resig Date: Sun, 18 Jun 2006 01:42:41 +0000 (+0000) Subject: Improved the robustness of the response codes based upon what's in Dojo. (Ticket... X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=c43e1e379d4158635b9cd0e2aaeb53f98fe9dd7b;p=jquery.git Improved the robustness of the response codes based upon what's in Dojo. (Ticket #14) --- diff --git a/ajax/ajax.js b/ajax/ajax.js index 8e0f81f..b0a993c 100644 --- a/ajax/ajax.js +++ b/ajax/ajax.js @@ -63,7 +63,8 @@ $.xml = function( type, url, data, ret ) { $.xmlActive = 0 } - if ( xml.status && xml.status >= 200 && xml.status < 300 ) { + if ( ( xml.status && ( xml.status >= 200 && xml.status < 300 ) || xml.status == 304 ) || + !xml.status && location.protocol == 'file:' ) { if ( onSuccess ) onSuccess( xml ); } else if ( onError ) {