Skip to content
This repository was archived by the owner on Jul 2, 2020. It is now read-only.

Debugging WAP Submit

Timotheus Pokorra edited this page Jan 5, 2015 · 4 revisions

Sometimes it is useful to see how the data is compiled in the Browser, before it is submitted to PHP.

See https://git.kolab.org/kolab-wap/tree/public_html/js/kolab_admin.js#n830: form_serialize function.

You can add a console.log(data); to see the content of data on your browsers's console

The submit call starts here, for example for user_save: https://git.kolab.org/kolab-wap/tree/public_html/js/kolab_admin.js#n2380

The request is posted via http here: https://git.kolab.org/kolab-wap/tree/public_html/js/kolab_admin.js#n2812

The AJAX call is here: https://git.kolab.org/kolab-wap/tree/public_html/js/kolab_admin.js#n405 to /api/user.edit

The user data is then processed here: http://git.kolab.org/kolab-wap/tree/lib/api/kolab_api_service_user.php#n130

Clone this wiki locally