* start();
* });
*
+ * @test stop(); // check if load can be called with only url
+ * $('#first').load("data/name.php");
+ * $.get("data/name.php", function() {
+ * ok( $('#first').text() == 'ERROR', 'Check if load works without callback');
+ * start();
+ * });
+ *
* @name load
* @type jQuery
* @param String url The URL of the HTML file to load.
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 || "" );
});
* @cat AJAX
*/
serialize: function() {
- return $.param( this );
+ return jQuery.param( this );
}
});
* )
*
* @test stop();
- * $.get("data/dashboard.xml", function(xml) {
- * var content = [];
- * $('tab', xml).each(function(k) {
- * // workaround for IE needed here, $(this).text() throws an error
- * // content[k] = $.trim(this.firstChild.data) || $(this).text();
- * content[k] = $(this).text();
- * });
- * ok( content[0] && content[0].match(/blabla/), 'Check first tab' );
- * ok( content[1] && content[1].match(/blublu/), 'Check second tab' );
- * start();
+ * $.get('data/dashboard.xml', function(xml) {
+ * var content = [];
+ * $('tab', xml).each(function() {
+ * content.push($(this).text());
+ * });
+ * ok( content[0] == 'blabla', 'Check first tab');
+ * ok( content[1] == 'blublu', 'Check second tab');
+ * start();
* });
+ *
*
* @name $.get
* @type jQuery
* start();
* }
* });
+ * // reset timeout
+ * $.ajaxTimeout(0);
*
*
* @name $.ajaxTimeout