doc/book/devweb/ajax.rst
author Denis Laxalde <denis.laxalde@logilab.fr>
Mon, 22 Jul 2019 11:09:15 +0200
changeset 12693 5e7212209ea6
parent 10491 c67bcee93248
child 12856 a82e56d4814a
permissions -rw-r--r--
[test] ensure mocking is stopped in cwctl tests Either use a decorator or ensure that cleanup is performed. This is so as to prevent global state modification.

.. _ajax:

Ajax
----

CubicWeb provides a few helpers to facilitate *javascript <-> python* communications.

You can, for instance, register some python functions that will become
callable from javascript through ajax calls. All the ajax URLs are handled
by the :class:`cubicweb.web.views.ajaxcontroller.AjaxController` controller.

.. automodule:: cubicweb.web.views.ajaxcontroller