Skip to content

Extensibility AJAX

Mark Vincent edited this page May 24, 2019 · 11 revisions

ASB Logo

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

Using AJAX Refresh

ASB is constructed so that modules only need to set a module property to take advantage of the AJAX refresh features.

Enabling AJAX Refresh

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

Next Topic

Using JavaScript