You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>The <code>opacity</code> of the image is already at its target value, so this property is not animated by the second click. Since the target value for <code>left</code> is a relative value, the image moves even farther to the right during this second animation.</p>
67
67
<p>Directional properties (<code>top</code>, <code>right</code>, <code>bottom</code>, <code>left</code>) have no discernible effect on elements if their <code>position</code> style property is <code>static</code>, which it is by default.</p>
68
68
<divclass="warning">
69
-
<p><strong>Note: </strong>The <ahref="http://jqueryui.com">jQuery UI</a> project extends the <code>.animate()</code> method by allowing some non-numeric styles such as colors to be animated. The project also includes mechanisms for specifying animations through CSS classes rather than individual attributes.</p>
69
+
<p><strong>Note: </strong>The <ahref="http://jqueryui.com/">jQuery UI</a> project extends the <code>.animate()</code> method by allowing some non-numeric styles such as colors to be animated. The project also includes mechanisms for specifying animations through CSS classes rather than individual attributes.</p>
70
70
</div>
71
71
<divclass="warning">
72
72
<p><strong>Note:</strong> if attempting to animate an element with a height or width of 0px, where contents of the element are visible due to overflow, jQuery may clip this overflow during animation. By fixing the dimensions of the original element being hidden however, it is possible to ensure that the animation runs smoothly. A <ahref="http://www.google.com/search?q=clearfix">clearfix</a> can be used to automatically fix the dimensions of your main element without the need to set this manually.</p>
Copy file name to clipboardExpand all lines: entries/focusin.xml
+2-2
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,8 @@
19
19
</signature>
20
20
<longdesc>
21
21
<p>This method is a shortcut for <code>.on('focusin', handler)</code>.</p>
22
-
<p>The <code>focusin</code> event is sent to an element when it, or any element inside of it, gains focus. This is distinct from the <ahref="/focus">focus</a> event in that it supports detecting the focus event on parent elements (in other words, it supports event bubbling).</p>
23
-
<p>This event will likely be used together with the <ahref="/focusout">focusout</a> event.</p>
22
+
<p>The <code>focusin</code> event is sent to an element when it, or any element inside of it, gains focus. This is distinct from the <ahref="/focus/">focus</a> event in that it supports detecting the focus event on parent elements (in other words, it supports event bubbling).</p>
23
+
<p>This event will likely be used together with the <ahref="/focusout/">focusout</a> event.</p>
24
24
</longdesc>
25
25
<example>
26
26
<desc>Watch for a focus to occur within the paragraphs on the page.</desc>
<desc>A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with <ahref="/jQuery.ajaxSetup">$.ajaxSetup()</a>.</desc>
17
+
<desc>A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with <ahref="/jQuery.ajaxSetup/">$.ajaxSetup()</a>.</desc>
18
18
<propertydefault="depends on DataType"name="accepts"type="PlainObject">
19
19
<desc>The content type sent in the request header that tells the server what kind of response it will accept in return. If the <code>accepts</code> setting needs modification, it is recommended to do so once in the <code>$.ajaxSetup()</code> method.</desc>
20
20
</property>
@@ -79,10 +79,10 @@ $.ajax({
79
79
<argumentname="jqXHR"type="jqXHR"/>
80
80
<argumentname="textStatus"type="String"/>
81
81
<argumentname="errorThrown"type="String"/>
82
-
<desc>A function to be called if the request fails. The function receives three arguments: The jqXHR (in jQuery 1.4.x, XMLHttpRequest) object, a string describing the type of error that occurred and an optional exception object, if one occurred. Possible values for the second argument (besides <code>null</code>) are <code>"timeout"</code>, <code>"error"</code>, <code>"abort"</code>, and <code>"parsererror"</code>. When an HTTP error occurs, <code>errorThrown</code> receives the textual portion of the HTTP status, such as "Not Found" or "Internal Server Error." <strong>As of jQuery 1.5</strong>, the <code>error</code> setting can accept an array of functions. Each function will be called in turn. <strong>Note:</strong> <em>This handler is not called for cross-domain script and cross-domain JSONP requests.</em> This is an <ahref="/Ajax_Events">Ajax Event</a>. </desc>
82
+
<desc>A function to be called if the request fails. The function receives three arguments: The jqXHR (in jQuery 1.4.x, XMLHttpRequest) object, a string describing the type of error that occurred and an optional exception object, if one occurred. Possible values for the second argument (besides <code>null</code>) are <code>"timeout"</code>, <code>"error"</code>, <code>"abort"</code>, and <code>"parsererror"</code>. When an HTTP error occurs, <code>errorThrown</code> receives the textual portion of the HTTP status, such as "Not Found" or "Internal Server Error." <strong>As of jQuery 1.5</strong>, the <code>error</code> setting can accept an array of functions. Each function will be called in turn. <strong>Note:</strong> <em>This handler is not called for cross-domain script and cross-domain JSONP requests.</em> This is an <ahref="/Ajax_Events/">Ajax Event</a>. </desc>
<desc>Whether to trigger global Ajax event handlers for this request. The default is <code>true</code>. Set to <code>false</code> to prevent the global handlers like <code>ajaxStart</code> or <code>ajaxStop</code> from being triggered. This can be used to control various <ahref="/Ajax_Events">Ajax Events</a>.</desc>
85
+
<desc>Whether to trigger global Ajax event handlers for this request. The default is <code>true</code>. Set to <code>false</code> to prevent the global handlers like <code>ajaxStart</code> or <code>ajaxStop</code> from being triggered. This can be used to control various <ahref="/Ajax_Events/">Ajax Events</a>.</desc>
<desc>An object of additional header key/value pairs to send along with requests using the XMLHttpRequest transport. The header <code>X-Requested-With: XMLHttpRequest</code> is always added, but its default <code>XMLHttpRequest</code> value can be changed here. Values in the <code>headers</code> setting can also be overwritten from within the <code>beforeSend</code> function.</desc>
<p>An object of fieldName-fieldValue pairs to set on the native <code><abbrtitle="XMLHttpRequest">XHR</abbr></code> object. For example, you can use it to set <code>withCredentials</code> to <code>true</code> for cross-domain requests if needed.
158
-
<pre><code>
157
+
<p>An object of fieldName-fieldValue pairs to set on the native <code><abbrtitle="XMLHttpRequest">XHR</abbr></code> object. For example, you can use it to set <code>withCredentials</code> to <code>true</code> for cross-domain requests if needed.</p>
158
+
<pre><code>
159
159
$.ajax({
160
160
url: a_cross_domain_url,
161
161
xhrFields: {
162
162
withCredentials: true
163
163
}
164
164
});
165
-
</code></pre>
166
-
<p><strong>In jQuery 1.5</strong>, the <code>withCredentials</code> property was not propagated to the native <code>XHR</code> and thus CORS requests requiring it would ignore this flag. For this reason, we recommend using jQuery 1.5.1+ should you require the use of it.
167
-
</p>
168
-
</p>
165
+
</code></pre>
166
+
<p><strong>In jQuery 1.5</strong>, the <code>withCredentials</code> property was not propagated to the native <code>XHR</code> and thus CORS requests requiring it would ignore this flag. For this reason, we recommend using jQuery 1.5.1+ should you require the use of it.</p>
169
167
</desc>
170
168
</property>
171
169
</argument>
@@ -190,11 +188,11 @@ $.ajax({
190
188
}
191
189
})
192
190
.done(function( data ) {
193
-
if( console && console.log ) {
191
+
if( console && console.log ) {
194
192
console.log( "Sample of data:", data.slice( 0, 100 ) );
195
193
}
196
194
});
197
-
</code></pre>
195
+
</code></pre>
198
196
<p>The jqXHR objects returned by <code>$.ajax()</code> as of jQuery 1.5 implement the Promise interface, giving them all the properties, methods, and behavior of a Promise (see <ahref="/category/deferred-object/">Deferred object</a> for more information). These methods take one or more function arguments that are called when the <code>$.ajax()</code> request terminates. This allows you to assign multiple callbacks on a single request, and even to assign callbacks after the request may have completed. (If the request is already complete, the callback is fired immediately.) Available Promise methods of the jqXHR object include: </p>
199
197
<ul>
200
198
<li>
@@ -222,22 +220,22 @@ $.ajax({
222
220
</div>
223
221
<pre><code>
224
222
// Assign handlers immediately after making the request,
225
-
// and remember the jqxhr object for this request
223
+
// and remember the jqXHR object for this request
226
224
var jqxhr = $.ajax( "example.php" )
227
225
.done(function() {
228
226
alert( "success" );
229
-
})
227
+
})
230
228
.fail(function() {
231
229
alert( "error" );
232
-
})
230
+
})
233
231
.always(function() {
234
232
alert( "complete" );
235
-
});
233
+
});
236
234
237
-
// perform other work here ...
235
+
// Perform other work here ...
238
236
239
237
// Set another completion function for the request above
240
-
jqxhr.always(function() {
238
+
jqxhr.always(function() {
241
239
alert( "second complete" );
242
240
});
243
241
</code></pre>
@@ -308,7 +306,8 @@ var jqxhr = $.ajax( "example.php" )
<p>Prefilters can also be used to modify existing options. For example, the following proxies cross-domain requests through http://mydomain.net/proxy/:</p>
Copy file name to clipboardExpand all lines: entries/jQuery.ajaxTransport.xml
+6-6
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@
16
16
<p>Since each request requires its own transport object instance, transports cannot be registered directly. Therefore, you should provide a function that returns a transport instead.</p>
17
17
<p>Transports factories are registered using <code>$.ajaxTransport()</code>. A typical registration looks like this:</p>
Copy file name to clipboardExpand all lines: entries/jQuery.boxModel.xml
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
<signature>
5
5
<added>1.0</added>
6
6
</signature>
7
-
<desc><strong>Deprecated in jQuery 1.3 (see <ahref="/jQuery.support">jQuery.support</a>)</strong>. States if the current page, in the user's browser, is being rendered using the <ahref="http://www.w3.org/TR/REC-CSS2/box.html">W3C CSS Box Model</a>.</desc>
7
+
<desc><strong>Deprecated in jQuery 1.3 (see <ahref="/jQuery.support/">jQuery.support</a>)</strong>. States if the current page, in the user's browser, is being rendered using the <ahref="http://www.w3.org/TR/REC-CSS2/box.html">W3C CSS Box Model</a>.</desc>
8
8
<longdesc/>
9
9
<example>
10
10
<desc>Returns the box model for the iframe.</desc>
Copy file name to clipboardExpand all lines: entries/jQuery.browser.xml
+2-2
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@
23
23
<example>
24
24
<desc>Show the browser info.</desc>
25
25
<code><![CDATA[
26
-
jQuery.each(jQuery.browser, function( i, val ) {
26
+
jQuery.each(jQuery.browser, function( i, val ) {
27
27
$( "<div>" + i + " : <span>" + val + "</span>" )
28
28
.appendTo( document.body );
29
29
});
@@ -39,7 +39,7 @@ $.browser.msie;
39
39
<desc>Alert "this is WebKit!" only for WebKit browsers. <strong>Will not work in jQuery 1.9 or later</strong> unless the <ahref="https://github.com/jquery/jquery-migrate/#readme">jQuery Migrate</a> plugin is included.</desc>
0 commit comments