<p>Hi everybody,<br /><br />I have a new problem with an other plugin : the plugin search!!<br /><br />I have loaded the plugin on the server and on the client side. I have edited the search.ini file,&nbsp;the search.tpl, the search_results.tpl and the search.ajax.js, like in the documentation. I have also modified the cartoclient.tpl.<br />The&nbsp;&quot;search&quot; button appears in my page with the field to search in, but nothing happens when I click on the button.<br /><br />What could be the problem? It seems the .js file is doing nothing, is there a problem in it??<br /><br />Here are some extracts of my files:<br /><br />search.tpl:<br /><br />...<br />&lt;p&gt;<br />&nbsp; &lt;input type=&quot;submit&quot; value=&quot;{t}Search{/t}&quot; class=&quot;form_button&quot;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; onclick=&quot;javascript: CartoWeb.trigger('Search.DoIt'); return false;&quot;/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp; &lt;input type=&quot;hidden&quot; id=&quot;search_config&quot; name=&quot;search_config&quot; value=&quot;evenements&quot;/&gt;<br />&nbsp; &lt;input type=&quot;hidden&quot; id=&quot;search_sort_column&quot; name=&quot;search_sort_column&quot; value=&quot;type_ev&quot; /&gt;<br />&nbsp; &lt;input type=&quot;hidden&quot; id=&quot;search_sort_direction&quot; name=&quot;search_sort_direction&quot; value=&quot;asc&quot; /&gt;<br />&nbsp; &lt;input type=&quot;hidden&quot; id=&quot;search_number&quot; name=&quot;search_number&quot; /&gt;<br />&nbsp; &lt;input type=&quot;hidden&quot; id=&quot;search_page&quot; name=&quot;search_page&quot; /&gt;<br />&nbsp;<br />&nbsp;&lt;div id=&quot;search_results_div&quot;&gt;&lt;/div&gt;<br />&lt;/p&gt;<br />...<br /><br />Search.ajax.je:<br />AjaxPlugins.Search = {<br />&nbsp; <br />&nbsp;&nbsp;&nbsp; handleResponse: function(pluginOutput) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (pluginOutput.htmlCode.evenements)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $('search_results_div').innerHTML = pluginOutput.htmlCode.evenements;</p><p>&nbsp;&nbsp;&nbsp; }&nbsp; <br />};</p><p><br />/*<br />&nbsp;* Search plugin's Actions<br />&nbsp;*/<br />&nbsp;<br />AjaxPlugins.Search.Actions = {};</p><p>AjaxPlugins.Search.Actions.DoIt = {</p><p>&nbsp;&nbsp;&nbsp; buildPostRequest: function(argObject) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return AjaxHandler.buildPostRequest();<br />&nbsp;&nbsp;&nbsp; }<br />};</p><p>function order(column) {<br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; if (column != $('search_sort_column').value) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $('search_sort.column').value = column;<br />&nbsp;&nbsp;$('search_sort.direction').value = 'asc';<br />&nbsp;&nbsp;&nbsp; } else {<br />&nbsp;&nbsp;if $('search_sort.direction').value == 'asc'{<br />&nbsp;&nbsp;$('search_sort.direction').value == 'desc';<br />&nbsp;&nbsp;} else {<br />&nbsp;&nbsp;&nbsp;$('search_sort.direction').value = 'asc';<br />&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp; CartoWeb.trigger('Search.DoIt');<br />}</p><br /><p>function recenter(id) {</p><p>&nbsp;if ($('search_config').value == 'evenements'{<br />&nbsp;<br />&nbsp;&nbsp;$('id_recenter_ids').value = gid;<br />&nbsp;&nbsp;$('id_recenter_layer').value = $('search_config').value; <br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; CartoWeb.trigger('Location.Recenter');<br />&nbsp;}<br />}</p><p>&nbsp;&nbsp;&nbsp; function search(config) {<br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; $('search_config').value = config;<br />&nbsp;&nbsp;&nbsp; if (config == 'evenements') {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $('search_number').value = 10;<br />&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; CartoWeb.trigger('Search.DoIt');<br />&nbsp;}<br />&nbsp;<br /><br />Thank you!!!!!!<br />Claire</p>