X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fajax%2Fajax.js;h=896f92d2f48e0189741b8e0e97fdf33bc832af96;hb=967eec18317d0451af93b1a86902e80d39086507;hp=2c63605d72bf10f5be47720ef9941ea6439e3023;hpb=29f3fd50f717b8e0592f46c6ab8bfd5d77e8e063;p=jquery.git diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js index 2c63605..896f92d 100644 --- a/src/ajax/ajax.js +++ b/src/ajax/ajax.js @@ -41,10 +41,10 @@ jQuery.fn.extend({ * * @test stop(); // check if load can be called with only url * $('#first').load("data/name.php"); - * setTimeout(function() { + * $.get("data/name.php", function() { * ok( $('#first').text() == 'ERROR', 'Check if load works without callback'); * start(); - * }, 100); + * }); * * @name load * @type jQuery @@ -87,9 +87,9 @@ jQuery.fn.extend({ self.html(res.responseText).each( callback, [res.responseText, status] ); // Execute all the scripts inside of the newly-injected HTML - $("script", self).each(function(){ + jQuery("script", self).each(function(){ if ( this.src ) - $.getScript( this.src ); + jQuery.getScript( this.src ); else eval.call( window, this.text || this.textContent || this.innerHTML || "" ); }); @@ -124,7 +124,7 @@ jQuery.fn.extend({ * @cat AJAX */ serialize: function() { - return $.param( this ); + return jQuery.param( this ); } });