Hi Oliver,<br /><br />I don't have the .js file included in my page, indeed. I should see all the srcipt in there?<br />I just have the :<br />&lt;p&gt;<br />&nbsp; &lt;input type=&quot;submit&quot; value=&quot;Search&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 />&lt;/fieldset&gt;<br />&lt;/div&gt;<br /><br />and that's it. Why my .js file is not called?<br /><br />Thank you<br /><br /><br /><br /><br /><blockquote style="padding-left: 5px; margin-left: 5px; border-left: #ff0000 2px solid">&gt; Message du 31/07/08 09:47<br />&gt; De : &quot;Oliver Christen&quot; <br />&gt; A : &quot;Claire Chastagnol&quot; , cartoweb-users@lists.maptools.org<br />&gt; Copie &agrave; : <br />&gt; Objet : Re: [Cartoweb-users] problems with the plugin search<br />&gt; <br />&gt;  <meta content="MSHTML 6.00.6000.16674" /><style></style><p style="margin:0;padding:0;"><font size="2">Hi</font></p><p style="margin:0;padding:0;"><font size="2">can you verify you have all the .js files included in your page ?</font></p><p style="margin:0;padding:0;"><font size="2">simply do a &quot;view source&quot; in your browser and search for the Search.ajax.js file.</font></p><p style="margin:0;padding:0;"><font size="2">also, you can add a simlpe &quot;alert('test')&quot; in the buildPostRequest function in AjaxPlugins.Search.Actions.DoIt , so you can see if that function is effectively called or not</font></p><p style="margin:0;padding:0;"><font size="2"></font></p><p style="margin:0;padding:0;"><font size="2">regards</font></p><p style="margin:0;padding:0;"><font size="2">Oliver</font></p><blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px"><p style="font: 10pt arial">----- Original Message ----- </p><p style="background: #e4e4e4; font: 10pt arial; font-color: black"><strong>From:</strong> <a href="mailto:chastagnol.claire@wanadoo.fr" title="chastagnol.claire@wanadoo.fr">Claire Chastagnol</a> </p><p style="font: 10pt arial"><strong>To:</strong> <a href="mailto:cartoweb-users@lists.maptools.org" title="cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</a> </p><p style="font: 10pt arial"><strong>Sent:</strong> Thursday, July 31, 2008 9:20 AM</p><p style="font: 10pt arial"><strong>Subject:</strong> [Cartoweb-users] problems with the plugin search</p><p style="margin:0;padding:0;"><br />&gt; </p><p>&gt; Hi everybody,<br />&gt; <br />&gt; I have a new problem with an other plugin : the plugin search!!<br />&gt; <br />&gt; 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 />&gt; 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 />&gt; <br />&gt; What could be the problem? It seems the .js file is doing nothing, is there a problem in it??<br />&gt; <br />&gt; Here are some extracts of my files:<br />&gt; <br />&gt; search.tpl:<br />&gt; <br />&gt; ...<br />&gt; </p><p><br />&gt; &nbsp; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; java-script=&quot;java-script: CartoWeb.trigger('Search.DoIt'); return false;&quot;/&gt;<br />&gt; &nbsp;&nbsp;&nbsp;&nbsp; <br />&gt; &nbsp; <br />&gt; &nbsp; <br />&gt; &nbsp; <br />&gt; &nbsp; <br />&gt; &nbsp; <br />&gt; &nbsp;<br />&gt; &nbsp; </p><br />&gt; <br />&gt; ...<br />&gt; <br />&gt; Search.ajax.je:<br />&gt; AjaxPlugins.Search = {<br />&gt; &nbsp; <br />&gt; &nbsp;&nbsp;&nbsp; handleResponse: function(pluginOutput) {<br />&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (pluginOutput.htmlCode.evenements)<br />&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $('search_results_div').innerHTML = pluginOutput.htmlCode.evenements; <p>&gt; &nbsp;&nbsp;&nbsp; }&nbsp; <br />&gt; };</p><p>&gt; <br />&gt; /*<br />&gt; &nbsp;* Search plugin's Actions<br />&gt; &nbsp;*/<br />&gt; &nbsp;<br />&gt; AjaxPlugins.Search.Actions = {};</p><p>&gt; AjaxPlugins.Search.Actions.DoIt = {</p><p>&gt; &nbsp;&nbsp;&nbsp; buildPostRequest: function(argObject) {<br />&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return AjaxHandler.buildPostRequest();<br />&gt; &nbsp;&nbsp;&nbsp; }<br />&gt; };</p><p>&gt; function order(column) {<br />&gt; &nbsp;&nbsp;&nbsp; <br />&gt; &nbsp;&nbsp;&nbsp; <br />&gt; &nbsp;&nbsp;&nbsp; if (column != $('search_sort_column').value) {<br />&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $('search_sort.column').value = column;<br />&gt; &nbsp;&nbsp;$('search_sort.direction').value = 'asc';<br />&gt; &nbsp;&nbsp;&nbsp; } else {<br />&gt; &nbsp;&nbsp;if $('search_sort.direction').value == 'asc'{<br />&gt; &nbsp;&nbsp;$('search_sort.direction').value == 'desc';<br />&gt; &nbsp;&nbsp;} else {<br />&gt; &nbsp;&nbsp;&nbsp;$('search_sort.direction').value = 'asc';<br />&gt; &nbsp;&nbsp;&nbsp;}<br />&gt; &nbsp;&nbsp;}<br />&gt; &nbsp;&nbsp;<br />&gt; &nbsp;&nbsp;&nbsp; CartoWeb.trigger('Search.DoIt');<br />&gt; }</p><br />&gt; <p>&gt; function recenter(id) {</p><p>&gt; &nbsp;if ($('search_config').value == 'evenements'{<br />&gt; &nbsp;<br />&gt; &nbsp;&nbsp;$('id_recenter_ids').value = gid;<br />&gt; &nbsp;&nbsp;$('id_recenter_layer').value = $('search_config').value; <br />&gt; &nbsp;&nbsp;&nbsp; <br />&gt; &nbsp;&nbsp;&nbsp; <br />&gt; &nbsp;&nbsp;&nbsp; CartoWeb.trigger('Location.Recenter');<br />&gt; &nbsp;}<br />&gt; }</p><p>&gt; &nbsp;&nbsp;&nbsp; function search(config) {<br />&gt; &nbsp;&nbsp;&nbsp; <br />&gt; &nbsp;&nbsp;&nbsp; $('search_config').value = config;<br />&gt; &nbsp;&nbsp;&nbsp; if (config == 'evenements') {<br />&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $('search_number').value = 10;<br />&gt; &nbsp;&nbsp;&nbsp; }<br />&gt; &nbsp;&nbsp;&nbsp; <br />&gt; &nbsp;&nbsp;&nbsp; CartoWeb.trigger('Search.DoIt');<br />&gt; &nbsp;}<br />&gt; &nbsp;<br />&gt; <br />&gt; Thank you!!!!!!<br />&gt; Claire</p><p>&gt; </p><hr /><p>&gt; </p>_______________________________________________<br />&gt; Cartoweb-users mailing list<br />&gt; Cartoweb-users@lists.maptools.org<br />&gt; http://lists.maptools.org/mailman/listinfo/cartoweb-users<br />&gt; </blockquote><br /></blockquote>