diff -r 3b79a0fc91db -r 10e8bc190695 doc/book/en/development/devweb/js.rst --- 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~