Skip to content

Commit b611699

Browse files
committed
Fixed many typos of the name Ajax
Closes jquerygh-810
1 parent 2902fc2 commit b611699

9 files changed

+13
-13
lines changed

entries/ajaxComplete.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $( document ).ajaxComplete(function( event, xhr, settings ) {
4242
}
4343
});
4444
</code></pre>
45-
<p><strong>Note:</strong> You can get the returned ajax contents by looking at <code>xhr.responseText</code>.</p>
45+
<p><strong>Note:</strong> You can get the returned Ajax contents by looking at <code>xhr.responseText</code>.</p>
4646
</longdesc>
4747
<note id="global-ajax-event" type="additional" data-title=".ajaxComplete()"/>
4848
<note id="ajax-global-false" type="additional" data-title=".ajaxComplete()"/>

entries/ajaxSuccess.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ $( ".trigger" ).on( "click", function() {
3838
<pre><code>
3939
$( document ).ajaxSuccess(function( event, xhr, settings ) {
4040
if ( settings.url == "ajax/test.html" ) {
41-
$( ".log" ).text( "Triggered ajaxSuccess handler. The ajax response was: " +
41+
$( ".log" ).text( "Triggered ajaxSuccess handler. The Ajax response was: " +
4242
xhr.responseText );
4343
}
4444
});
4545
</code></pre>
46-
<p><strong>Note:</strong> You can get the returned ajax contents by looking at <code>xhr.responseXML</code> or <code>xhr.responseText</code> for xml and html respectively.</p>
46+
<p><strong>Note:</strong> You can get the returned Ajax contents by looking at <code>xhr.responseXML</code> or <code>xhr.responseText</code> for xml and html respectively.</p>
4747
</longdesc>
4848
<note id="global-ajax-event" type="additional" data-title=".ajaxSuccess()"/>
4949
<note id="ajax-global-false" type="additional" data-title=".ajaxSuccess()"/>

entries/jQuery.Callbacks.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ dfd.done( topic.publish );
259259
// Here the Deferred is being resolved with a message
260260
// that will be passed back to subscribers. It's possible to
261261
// easily integrate this into a more complex routine
262-
// (eg. waiting on an ajax call to complete) so that
262+
// (eg. waiting on an Ajax call to complete) so that
263263
// messages are only published once the task has actually
264264
// finished.
265265
dfd.resolve( "it's been published!" );

entries/jQuery.ajaxPrefilter.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $.ajaxPrefilter(function( options, originalOptions, jqXHR ) {
2424
<p>where:</p>
2525
<ul>
2626
<li><code>options</code> are the request options</li>
27-
<li><code>originalOptions</code> are the options as provided to the ajax method, unmodified and, thus, without defaults from <code>ajaxSettings</code></li>
27+
<li><code>originalOptions</code> are the options as provided to the <code>$.ajax()</code> method, unmodified and, thus, without defaults from <code>ajaxSettings</code></li>
2828
<li><code>jqXHR</code> is the jqXHR object of the request</li>
2929
</ul>
3030
<p>Prefilters are a perfect fit when custom options need to be handled. Given the following code, for example, a call to <code>$.ajax()</code> would automatically abort a request to the same URL if the custom <code>abortOnRetry</code> option is set to <code>true</code>:</p>

entries/jQuery.ajaxTransport.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ $.ajaxTransport( dataType, function( options, originalOptions, jqXHR ) {
3535
<p>where:</p>
3636
<ul>
3737
<li><code>options</code> are the request options</li>
38-
<li><code>originalOptions</code> are the options as provided to the ajax method, unmodified and, thus, without defaults from ajaxSettings</li>
38+
<li><code>originalOptions</code> are the options as provided to the <code>$.ajax()</code> method, unmodified and, thus, without defaults from ajaxSettings</li>
3939
<li><code>jqXHR</code> is the jqXHR object of the request</li>
4040
<li><code>headers</code> is an object of (key-value) request headers that the transport can transmit if it supports it</li>
41-
<li><code>completeCallback</code> is the callback used to notify ajax of the completion of the request</li>
41+
<li><code>completeCallback</code> is the callback used to notify Ajax of the completion of the request</li>
4242
</ul>
4343
<p><code>completeCallback</code> has the following signature:</p>
4444
<pre><code>

entries/jQuery.get.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ $.get( "ajax/test.html", function( data ) {
4949
</code></pre>
5050
<p>This example fetches the requested HTML snippet and inserts it on the page.</p>
5151
<h4 id="jqxhr-object">The jqXHR Object</h4>
52-
<p><strong>As of jQuery 1.5</strong>, all of jQuery's Ajax methods return a superset of the <code>XMLHTTPRequest</code> object. This jQuery XHR object, or "jqXHR," returned by <code>$.get()</code> implements the Promise interface, giving it all the properties, methods, and behavior of a Promise (see <a href="/category/deferred-object/">Deferred object</a> for more information). The <code>jqXHR.done()</code> (for success), <code>jqXHR.fail()</code> (for error), and <code>jqXHR.always()</code> (for completion, whether success or error) methods take a function argument that is called when the request terminates. For information about the arguments this function receives, see the <a href="/jQuery.ajax/#jqXHR">jqXHR Object</a> section of the $.ajax() documentation.</p>
52+
<p><strong>As of jQuery 1.5</strong>, all of jQuery's Ajax methods return a superset of the <code>XMLHTTPRequest</code> object. This jQuery XHR object, or "jqXHR," returned by <code>$.get()</code> implements the Promise interface, giving it all the properties, methods, and behavior of a Promise (see <a href="/category/deferred-object/">Deferred object</a> for more information). The <code>jqXHR.done()</code> (for success), <code>jqXHR.fail()</code> (for error), and <code>jqXHR.always()</code> (for completion, whether success or error) methods take a function argument that is called when the request terminates. For information about the arguments this function receives, see the <a href="/jQuery.ajax/#jqXHR">jqXHR Object</a> section of the <code>$.ajax()</code> documentation.</p>
5353
<p>The Promise interface also allows jQuery's Ajax methods, including <code>$.get()</code>, to chain multiple <code>.done()</code>, <code>.fail()</code>, and <code>.always()</code> callbacks on a single request, and even to assign these callbacks after the request may have completed. If the request is already complete, the callback is fired immediately.</p>
5454
<pre><code>
5555
// Assign handlers immediately after making the request,

entries/jQuery.getJSON.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ $.getJSON( "ajax/test.json", function( data ) {
6161
<h4 id="jsonp">JSONP</h4>
6262
<p>If the URL includes the string "callback=?" (or similar, as defined by the server-side API), the request is treated as JSONP instead. See the discussion of the <code>jsonp</code> data type in <code><a href="/jQuery.ajax/">$.ajax()</a></code> for more details.</p>
6363
<h4 id="jqxhr-object">The jqXHR Object</h4>
64-
<p><strong>As of jQuery 1.5</strong>, all of jQuery's Ajax methods return a superset of the <code>XMLHTTPRequest</code> object. This jQuery XHR object, or "jqXHR," returned by <code>$.getJSON()</code> implements the Promise interface, giving it all the properties, methods, and behavior of a Promise (see <a href="/category/deferred-object/">Deferred object</a> for more information). The <code>jqXHR.done()</code> (for success), <code>jqXHR.fail()</code> (for error), and <code>jqXHR.always()</code> (for completion, whether success or error) methods take a function argument that is called when the request terminates. For information about the arguments this function receives, see the <a href="/jQuery.ajax/#jqXHR">jqXHR Object</a> section of the $.ajax() documentation.</p>
64+
<p><strong>As of jQuery 1.5</strong>, all of jQuery's Ajax methods return a superset of the <code>XMLHTTPRequest</code> object. This jQuery XHR object, or "jqXHR," returned by <code>$.getJSON()</code> implements the Promise interface, giving it all the properties, methods, and behavior of a Promise (see <a href="/category/deferred-object/">Deferred object</a> for more information). The <code>jqXHR.done()</code> (for success), <code>jqXHR.fail()</code> (for error), and <code>jqXHR.always()</code> (for completion, whether success or error) methods take a function argument that is called when the request terminates. For information about the arguments this function receives, see the <a href="/jQuery.ajax/#jqXHR">jqXHR Object</a> section of the <code>$.ajax()</code> documentation.</p>
6565
<p>The Promise interface in jQuery 1.5 also allows jQuery's Ajax methods, including <code>$.getJSON()</code>, to chain multiple <code>.done()</code>, <code>.always()</code>, and <code>.fail()</code> callbacks on a single request, and even to assign these callbacks after the request may have completed. If the request is already complete, the callback is fired immediately.</p>
6666
<pre><code>
6767
// Assign handlers immediately after making the request,

entries/jQuery.post.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ $.post( "test.php", { 'choices[]': [ "Jon", "Susan" ] } );
100100
]]></code>
101101
</example>
102102
<example>
103-
<desc>Send form data using ajax requests</desc>
103+
<desc>Send form data using Ajax requests</desc>
104104
<code><![CDATA[
105105
$.post( "test.php", $( "#testform" ).serialize() );
106106
]]></code>
@@ -132,7 +132,7 @@ $.post( "test.php", { func: "getNameAndTime" }, function( data ) {
132132
]]></code>
133133
</example>
134134
<example>
135-
<desc>Post a form using ajax and put results in a div</desc>
135+
<desc>Post a form using Ajax and put results in a div</desc>
136136
<code><![CDATA[
137137
// Attach a submit handler to the form
138138
$( "#searchForm" ).submit(function( event ) {

entries/jQuery.when.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ d1.resolve();
5656
d2.resolve( "abc" );
5757
d3.resolve( 1, 2, 3, 4, 5 );
5858
</code></pre>
59-
<p>In the multiple-Deferreds case where one of the Deferreds is rejected, <code>jQuery.when()</code> immediately fires the failCallbacks for its master Deferred. Note that some of the Deferreds may still be unresolved at that point. The arguments passed to the failCallbacks match the signature of the failCallback for the Deferred that was rejected. If you need to perform additional processing for this case, such as canceling any unfinished ajax requests, you can keep references to the underlying jqXHR objects in a closure and inspect/cancel them in the failCallback.</p>
59+
<p>In the multiple-Deferreds case where one of the Deferreds is rejected, <code>jQuery.when()</code> immediately fires the failCallbacks for its master Deferred. Note that some of the Deferreds may still be unresolved at that point. The arguments passed to the failCallbacks match the signature of the failCallback for the Deferred that was rejected. If you need to perform additional processing for this case, such as canceling any unfinished Ajax requests, you can keep references to the underlying jqXHR objects in a closure and inspect/cancel them in the failCallback.</p>
6060
</longdesc>
6161
<example>
62-
<desc>Execute a function after two ajax requests are successful. (See the jQuery.ajax() documentation for a complete description of success and error cases for an ajax request).</desc>
62+
<desc>Execute a function after two Ajax requests are successful. (See the jQuery.ajax() documentation for a complete description of success and error cases for an ajax request).</desc>
6363
<code><![CDATA[
6464
$.when( $.ajax( "/page1.php" ), $.ajax( "/page2.php" ) ).done(function( a1, a2 ) {
6565
// a1 and a2 are arguments resolved for the page1 and page2 ajax requests, respectively.

0 commit comments

Comments
 (0)