Skip to content

Commit 58373d3

Browse files
committed
jQuery.ajax: Clean up prefilter, converter, transport discussion
Also, deleted pages/extending-ajax.html. No longer needed. Fixes #84
1 parent da0e717 commit 58373d3

File tree

2 files changed

+5
-278
lines changed

2 files changed

+5
-278
lines changed

entries/jQuery.ajax.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,11 @@ jQuery.ajaxSettings.xhr = function () {
287287
return xhr;
288288
};
289289
</code></pre>
290-
<h4>Using Converters</h4>
290+
291+
<h4 id="extending-ajax">Extending Ajax</h4>
292+
<p><strong>As of jQuery 1.5</strong>, jQuery's Ajax implementation includes <a href="/jQuery.ajaxPrefilter/">prefilters</a>, <a href="/jQuery.ajaxTransport/">transports</a>, and converters that allow you to extend Ajax with a great deal of flexibility.</p>
293+
294+
<h4 id="using-converters">Using Converters</h4>
291295
<p><code>$.ajax()</code> converters support mapping data types to other data types. If, however, you want to map a custom data type to a known type (e.g <code>json</code>), you must added a correspondance between the response Content-Type and the actual data type using the <code>contents</code> option:</p>
292296
<pre><code>
293297
$.ajaxSetup({
@@ -319,8 +323,6 @@ $.ajaxSetup({
319323
});
320324
</code></pre>
321325
<p>The above now allows passing from <code>text</code> to <code>mycustomtype</code> and then <code>mycustomtype</code> to <code>json</code>.</p>
322-
<h4>Extending Ajax</h4>
323-
<p><strong>As of jQuery 1.5</strong>, jQuery's Ajax implementation includes prefilters, converters, and transports that allow you to extend Ajax with a great deal of flexibility. For more information about these advanced features, see the <a href="http://api.jquery.com/extending-ajax/">Extending Ajax</a> page.</p>
324326
</longdesc>
325327
<note id="same-origin-policy" type="additional"/>
326328
<note id="same-origin-policy-exceptions" type="additional"/>

pages/extending-ajax.html

Lines changed: 0 additions & 275 deletions
This file was deleted.

0 commit comments

Comments
 (0)