Description

This event will be triggered before any Ajax operation is performed. The plugin can decide whether to proceed with the Ajax operation by returning true (proceed)/false (stop).


Params

An array with three items: 'func' value passed at Ajax settings from browser in array, an array composed from data posted from browser, and the an object with a default response array.

{code}
Array
(
[0] => Array( 0 => 'apps,ajaxBrowse'), /* just an example */
[1] => Array( 0 => 'somevalue1', 1 => 'somevalue2'),
[2] => $objAjax->response /* response is an Array with default Array( 0 => 'as', 1 => 'ajax_calls', 2 => 'd', 3 => '') */
)
{/code}

Return

boolean (true/false)


Examples

{code}

function
onAjaxCall( $arrItems )
{
/*
* perform your required pre-requisite handler here
* return true if you want the to continue with the Ajax operation
* return false to stop the Ajax operation
*/
}
{/code}

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW