- Module: mod_base
The postback controller is the endpoint for AJAX callbacks and transports from the browser to the server.
See Transport for more information about transporting data between the server and the browser.
HTML form posts¶
It is possible to directly post HTML forms to the postback controller.
The method of the form must be POST, the action has two possibilities:
<form method="POST" action="/postback/mymessage">...</form>
<form method="POST" action="/postback/mymessage/mymodule">...</form>
The first example will call:
The second example will call the mentioned module directly:
All posted query arguments are available via the usual
z_context:get_q("arg", Context) calls.
z_page_id was included in the post.
Body content and headers can be set in the Context and will be sent back to the browser.