X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=src%2Fajax%2Fajax.js;h=a52879aa322feb8f0697113b49ae6d86701a885f;hb=40b55adf5c22542985c3f7fc2717df9604a3d973;hp=1b1e274dbbe0a228f4ed3c075344950c479f096f;hpb=bfa8306633da9c2500e4f3e190c81a9827a8f95a;p=jquery.git diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js index 1b1e274..a52879a 100644 --- a/src/ajax/ajax.js +++ b/src/ajax/ajax.js @@ -661,6 +661,16 @@ jQuery.extend({ * } * }); * + * @test stop(); + * $.ajax({ + * url: "data/with_fries.xml", dataType: "xml", type: "GET", data: "", success: function(resp) { + * ok( $("properties", resp).length == 1, 'properties in responseXML' ); + * ok( $("jsconf", resp).length == 1, 'jsconf in responseXML' ); + * ok( $("thing", resp).length == 2, 'things in responseXML' ); + * start(); + * } + * }); + * * @name $.ajax * @type jQuery * @param Hash prop A set of properties to initialize the request with. @@ -678,7 +688,7 @@ jQuery.extend({ var dataType = type.dataType; var global = typeof type.global == "boolean" ? type.global : true; var timeout = typeof type.timeout == "number" ? type.timeout : jQuery.timeout; - var ifModified = type.ifModified || false; + ifModified = type.ifModified || false; data = type.data; url = type.url; type = type.type; @@ -833,7 +843,7 @@ jQuery.extend({ if ( type == "json" ) eval( "data = " + data ); // evaluate scripts within html - if ( type == "html" ) $("
").html(data).evalScripts(); + if ( type == "html" ) jQuery("
").html(data).evalScripts(); return data; },