doc/book/en/development/devweb/js.rst
changeset 4830 10e8bc190695
parent 4437 21f2e01fdd6a
child 5151 2f70fa8b6854
equal deleted inserted replaced
4829:3b79a0fc91db 4830:10e8bc190695
    38 
    38 
    39 * `add_onload(self, jscode)` which adds one raw javascript code
    39 * `add_onload(self, jscode)` which adds one raw javascript code
    40   snippet inline in the html headers. This is quite useful for setting
    40   snippet inline in the html headers. This is quite useful for setting
    41   up early jQuery(document).ready(...) initialisations.
    41   up early jQuery(document).ready(...) initialisations.
    42 
    42 
       
    43 CubicWeb javascript events
       
    44 ~~~~~~~~~~~~~~~~~~~~~~~~~~
       
    45 
       
    46 * ``server-response``: this event is triggered on HTTP responses (both
       
    47   standard and ajax). The two following extra parameters are passed
       
    48   to callbacks :
       
    49 
       
    50   - ``ajax``: a boolean that says if the reponse was issued by an
       
    51     ajax request
       
    52 
       
    53   - ``node``: the DOM node returned by the server in case of an
       
    54     ajax request, otherwise the document itself for standard HTTP
       
    55     requests.
       
    56 
       
    57 
    43 Overview of what's available
    58 Overview of what's available
    44 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    59 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    45 
    60 
    46 * jquery.* : jquery and jquery UI library
    61 * jquery.* : jquery and jquery UI library
    47 
    62