[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Remote Scripting Library Copyright 2005 modernmethod, inc Under the open source BSD license http://www.modernmethod.com/sajax/
File Size: | 194 lines (6 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
debug( text ) X-Ref |
if sajax_debug_mode is true, this function outputs given the message into the element with id = sajax_debug; if no such element exists in the document, it is injected. |
createXhr() X-Ref |
Compatibility wrapper for creating a new XMLHttpRequest object. |
doAjaxRequest( func_name, args, target ) X-Ref |
Perform an AJAX call to MediaWiki. Calls are handled by AjaxDispatcher.php func_name - the name of the function to call. Must be registered in $wgAjaxExportList args - an array of arguments to that function target - the target that will handle the result of the call. If this is a function, if will be called with the XMLHttpRequest as a parameter; if it's an input element, its value will be set to the resultText; if it's another type of element, its innerHTML will be set to the resultText. Example: sajax_do_call( 'doFoo', [1, 2, 3], document.getElementById( 'showFoo' ) ); This will call the doFoo function via MediaWiki's AjaxDispatcher, with (1, 2, 3) as the parameter list, and will show the result in the element with id = showFoo |
wfSupportsAjax() X-Ref |
return: {boolean} Whether the browser supports AJAX |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |