DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:ajax_call_unknown

This is an old revision of the document!


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

devel/event/ajax_call_unknown.1382622341.txt.gz · Last modified: 2013-10-24 15:45 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki