doc/book/en/devweb/controllers.rst
changeset 7876 df15d194a134
parent 7529 2fdc310be7cd
child 8128 0a927fe4541b
--- a/doc/book/en/devweb/controllers.rst	Tue Sep 27 18:46:36 2011 +0200
+++ b/doc/book/en/devweb/controllers.rst	Tue Sep 27 18:47:11 2011 +0200
@@ -26,9 +26,23 @@
   typically using JSON as a serialization format for input, and
   sometimes using either JSON or XML for output;
 
+* the JSonpController is a wrapper around the ``ViewController`` that
+  provides jsonp_ services. Padding can be specified with the
+  ``callback`` request parameter. Only *jsonexport* / *ejsonexport*
+  views can be used. If another ``vid`` is specified, it will be
+  ignored and replaced by *jsonexport*. Request is anonymized
+  to avoid returning sensitive data and reduce the risks of CSRF attacks;
+
 * the Login/Logout controllers make effective user login or logout
   requests
 
+.. warning::
+
+  JsonController will probably be renamed into AjaxController soon since
+  it has nothing to do with json per se.
+
+.. _jsonp: http://en.wikipedia.org/wiki/JSONP
+
 `Edition`:
 
 * the Edit controller (see :ref:`edit_controller`) handles CRUD