-
Notifications
You must be signed in to change notification settings - Fork 10
Extensibility AJAX
Mark Vincent edited this page May 24, 2019
·
11 revisions
This document is designed to explain the concepts of enabling AJAX refresh in an Advanced Sidebox addon module. For further details, view the entire list of extensibility documents: Extensibility Docs
ASB is constructed so that modules only need to set a module property to take advantage of the AJAX refresh features.
In your module's _info()
function, add the xmlhttp
setting with a value of (bool) true:
function asb_example_info()
{
return array(
'title' => 'XMLHTTP Example',
[...]
'xmlhttp' => true,
);
}
...and you're done. Since 4.0, all of the work is done internally. 😄
For a working version, look here: AJAX Example