<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://documentation.jomsocial.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://documentation.jomsocial.com/index.php?action=history&amp;feed=atom&amp;title=OnAjaxCall</id>
		<title>OnAjaxCall - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://documentation.jomsocial.com/index.php?action=history&amp;feed=atom&amp;title=OnAjaxCall"/>
		<link rel="alternate" type="text/html" href="http://documentation.jomsocial.com/index.php?title=OnAjaxCall&amp;action=history"/>
		<updated>2026-06-05T18:38:39Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.1</generator>

	<entry>
		<id>http://documentation.jomsocial.com/index.php?title=OnAjaxCall&amp;diff=314&amp;oldid=prev</id>
		<title>Sinisakrisan: Created page with &quot;===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 (proc...&quot;</title>
		<link rel="alternate" type="text/html" href="http://documentation.jomsocial.com/index.php?title=OnAjaxCall&amp;diff=314&amp;oldid=prev"/>
				<updated>2013-01-18T15:05:34Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;===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 (proc...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===Description===&lt;br /&gt;
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).&lt;br /&gt;
&lt;br /&gt;
===Params===&lt;br /&gt;
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.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
Array&lt;br /&gt;
(&lt;br /&gt;
    [0] =&amp;gt; Array( 0 =&amp;gt; 'apps,ajaxBrowse'), /* just an example */&lt;br /&gt;
    [1] =&amp;gt; Array( 0 =&amp;gt; 'somevalue1',  1 =&amp;gt; 'somevalue2'),&lt;br /&gt;
    [2] =&amp;gt; $objAjax-&amp;gt;response /* response is an Array with default Array( 0 =&amp;gt; 'as', 1 =&amp;gt; 'ajax_calls', 2 =&amp;gt; 'd', 3 =&amp;gt; '') */&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
boolean (true/false)&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
function onAjaxCall( $arrItems ) &lt;br /&gt;
{&lt;br /&gt;
    /* &lt;br /&gt;
     * perform your required pre-requisite handler here &lt;br /&gt;
     * return true if you want the to continue with the Ajax operation&lt;br /&gt;
     * return false to stop the Ajax operation&lt;br /&gt;
     */&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sinisakrisan</name></author>	</entry>

	</feed>