Changeset 7361 for django/trunk/docs/request_response.txt
- Timestamp:
- 03/24/08 23:42:21 (5 months ago)
- Files:
-
- django/trunk/docs/request_response.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/request_response.txt
r7334 r7361 144 144 ``urlconf`` 145 145 Not defined by Django itself, but will be read if other code 146 (e.g., a custom middleware class) sets it ; when present, this will147 be used as the root URL Conf for the current request, overriding146 (e.g., a custom middleware class) sets it. When present, this will 147 be used as the root URLconf for the current request, overriding 148 148 the ``ROOT_URLCONF`` setting. See `How Django processes a 149 149 request`_ for details. 150 150 151 151 .. _How Django processes a request: ../url_dispatch/#how-django-processes-a-request 152 153 152 154 153 Methods … … 203 202 **New in Django development version** 204 203 205 Returns ``True`` if the request was made via an XMLHttpRequestby checking206 the ``HTTP_X_REQUESTED_WITH`` header for the string *'XMLHttpRequest'*. The207 following major Java script libraries all send this header:208 209 * jQuery210 * Dojo211 * MochiKit212 * MooTools213 * Prototype214 * YUI215 216 If you write your own XMLHttpRequest call (on the browser side), you will217 have to set this header manually to use this method.204 Returns ``True`` if the request was made via an ``XMLHttpRequest``, by checking 205 the ``HTTP_X_REQUESTED_WITH`` header for the string ``'XMLHttpRequest'``. The 206 following major JavaScript libraries all send this header: 207 208 * jQuery 209 * Dojo 210 * MochiKit 211 * MooTools 212 * Prototype 213 * YUI 214 215 If you write your own XMLHttpRequest call (on the browser side), you'll 216 have to set this header manually if you want ``is_ajax()`` to work. 218 217 219 218 QueryDict objects
