devel:event:ajax_call_unknown
This is an old revision of the document!
Table of Contents
AJAX_CALL_UNKNOWN
- Description:
- Handle AJAX calls
- DefaultAction:
- Sends an "AJAX call <call> unknown!" message.
- Preventable:
- yes
- Added:
- 2006-08-09
The event is signaled from lib/exe/ajax.php if the AJAX call is not recognized and allows you to add your own functionality to the AJAX backend.
Passed Data
$data is a scalar containing the AJAX call name in $_POST['call'].
Remember to use preventDefault()
(and possibly stopPropagation()
) when handling an unknown AJAX event. This keeps other handlers from corrupting your returned data. Also use a unique AJAX call name to avoid collisions
Plugins handling this event
The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself.
See also
- Example: Handle JSON ajax request
devel/event/ajax_call_unknown.1382622341.txt.gz · Last modified: 2013-10-24 15:45 by Klap-in