Commit 49b9470d authored by Luke Plant's avatar Luke Plant
Browse files

Fixed #11071 - update is_ajax() docs.

 
Thanks timo.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@11490 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 18a67e10
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -232,16 +232,7 @@ Methods

   Returns ``True`` if the request was made via an ``XMLHttpRequest``, by
   checking the ``HTTP_X_REQUESTED_WITH`` header for the string
   ``'XMLHttpRequest'``. The following major JavaScript libraries all send this
   header:

       * jQuery
       * Dojo
       * MochiKit
       * MooTools
       * Prototype
       * YUI

   ``'XMLHttpRequest'``. Most modern JavaScript libraries send this header.
   If you write your own XMLHttpRequest call (on the browser side), you'll
   have to set this header manually if you want ``is_ajax()`` to work.