Translations of this page?:

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.txt · Last modified: 2009/09/11 19:06 by HåkanS
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate