Skip to content

Commit 03710c0

Browse files
johnnyreillykswedberg
authored andcommitted
ajaxComplete(): responseXML -> responseText. Closes jquery#483
1 parent 4418ffc commit 03710c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entries/ajaxComplete.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ $( ".trigger" ).click(function() {
3838
$( document ).ajaxComplete(function( event, xhr, settings ) {
3939
if ( settings.url === "ajax/test.html" ) {
4040
$( ".log" ).text( "Triggered ajaxComplete handler. The result is " +
41-
xhr.responseHTML );
41+
xhr.responseText );
4242
}
4343
});
4444
</code></pre>
45-
<p><strong>Note:</strong> You can get the returned ajax contents by looking at <code>xhr.responseXML</code> or <code>xhr.responseHTML</code> for xml and html respectively.</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="ajax-global-false" type="additional" data-title=".ajaxComplete()"/>
4848
<example>

0 commit comments

Comments
 (0)