mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Merged in some wiki fixes into the main docs.
This commit is contained in:
parent
729396e6cf
commit
382a7ecd6d
@ -223,7 +223,7 @@ if ( jQuery.browser.msie && typeof XMLHttpRequest == "undefined" )
|
||||
*/
|
||||
|
||||
/**
|
||||
* Attach a function to be executed before an AJAX request is send.
|
||||
* Attach a function to be executed before an AJAX request is sent.
|
||||
*
|
||||
* The XMLHttpRequest and settings used for that request are passed
|
||||
* as arguments to the callback.
|
||||
@ -231,7 +231,7 @@ if ( jQuery.browser.msie && typeof XMLHttpRequest == "undefined" )
|
||||
* @example $("#msg").ajaxSend(function(request, settings){
|
||||
* $(this).append("<li>Starting request at " + settings.url + "</li>");
|
||||
* });
|
||||
* @desc Show a message before an AJAX request is send.
|
||||
* @desc Show a message before an AJAX request is sent.
|
||||
*
|
||||
* @name ajaxSend
|
||||
* @type jQuery
|
||||
@ -536,7 +536,7 @@ jQuery.extend({
|
||||
* the default content-type "application/x-www-form-urlencoded". If you want to send
|
||||
* DOMDocuments, set this option to false.
|
||||
*
|
||||
* (Boolean) async - By default, all requests are send asynchronous (set to true).
|
||||
* (Boolean) async - By default, all requests are sent asynchronous (set to true).
|
||||
* If you need synchronous requests, set this option to false.
|
||||
*
|
||||
* (Function) beforeSend - A pre-callback to set custom headers etc., the
|
||||
|
12
src/jquery/jquery.js
vendored
12
src/jquery/jquery.js
vendored
@ -320,17 +320,17 @@ jQuery.fn = jQuery.prototype = {
|
||||
* Returns -1 if the object wasn't found.
|
||||
*
|
||||
* @example $("*").index( $('#foobar')[0] )
|
||||
* @before <div id="foobar"></div><b></b><span id="foo"></span>
|
||||
* @before <div id="foobar"><b></b><span id="foo"></span></div>
|
||||
* @result 0
|
||||
* @desc Returns the index for the element with ID foobar
|
||||
*
|
||||
* @example $("*").index( $('#foo'))
|
||||
* @before <div id="foobar"></div><b></b><span id="foo"></span>
|
||||
* @example $("*").index( $('#foo')[0] )
|
||||
* @before <div id="foobar"><b></b><span id="foo"></span></div>
|
||||
* @result 2
|
||||
* @desc Returns the index for the element with ID foo
|
||||
* @desc Returns the index for the element with ID foo within another element
|
||||
*
|
||||
* @example $("*").index( $('#bar'))
|
||||
* @before <div id="foobar"></div><b></b><span id="foo"></span>
|
||||
* @example $("*").index( $('#bar')[0] )
|
||||
* @before <div id="foobar"><b></b><span id="foo"></span></div>
|
||||
* @result -1
|
||||
* @desc Returns -1, as there is no element with ID bar
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user