Manual talk:Ajax
From MediaWiki.org
[edit] Callback function?
Hello!
Can someone please explain the thing with the "callback function" in a bit more detail? I'd love to call "sortables_init();" to keep my table sortable after I changed their content with "sajax_do_call"...
Thanks in advance! -- 87.179.94.82 22:25, 1 August 2008 (UTC)
[edit] registering php function called via ajax
For version 1.12 (at least) stuff below must be put in some file that is called by chain of "require_once" statements, starting in LocalSettings.php
global $wgAjaxExportList;
$wgAjaxExportList[] = 'wfYourFunction';
function wfYourFunction(){};
server ajax handler won't find wfYourFunction if it is registered from file referred to via $wgAutoloadClasses.