doc/book/en/development/devweb/js.rst
changeset 4830 10e8bc190695
parent 4437 21f2e01fdd6a
child 5151 2f70fa8b6854
--- a/doc/book/en/development/devweb/js.rst	Mon Mar 08 09:51:29 2010 +0100
+++ b/doc/book/en/development/devweb/js.rst	Mon Mar 08 19:11:47 2010 +0100
@@ -40,6 +40,21 @@
   snippet inline in the html headers. This is quite useful for setting
   up early jQuery(document).ready(...) initialisations.
 
+CubicWeb javascript events
+~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+* ``server-response``: this event is triggered on HTTP responses (both
+  standard and ajax). The two following extra parameters are passed
+  to callbacks :
+
+  - ``ajax``: a boolean that says if the reponse was issued by an
+    ajax request
+
+  - ``node``: the DOM node returned by the server in case of an
+    ajax request, otherwise the document itself for standard HTTP
+    requests.
+
+
 Overview of what's available
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~