<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hi</FONT></DIV>
<DIV><FONT size=2>can you verify you have all the .js files included in your
page ?</FONT></DIV>
<DIV><FONT size=2>simply do a "view source" in your browser and search for the
Search.ajax.js file.</FONT></DIV>
<DIV><FONT size=2>also, you can add a simlpe "alert('test')" in the
buildPostRequest function in AjaxPlugins.Search.Actions.DoIt , so you can see if
that function is effectively called or not</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>regards</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=chastagnol.claire@wanadoo.fr
href="mailto:chastagnol.claire@wanadoo.fr">Claire Chastagnol</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, July 31, 2008 9:20
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] problems with
the plugin search</DIV>
<DIV><BR></DIV>
<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, 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 "search" 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><p><BR> <input
type="submit" value="{t}Search{/t}"
class="form_button"<BR>
onclick="javascript: CartoWeb.trigger('Search.DoIt'); return
false;"/><BR> <BR> <input type="hidden"
id="search_config" name="search_config" value="evenements"/><BR>
<input type="hidden" id="search_sort_column" name="search_sort_column"
value="type_ev" /><BR> <input type="hidden"
id="search_sort_direction" name="search_sort_direction" value="asc"
/><BR> <input type="hidden" id="search_number"
name="search_number" /><BR> <input type="hidden" id="search_page"
name="search_page" /><BR> <BR> <div
id="search_results_div"></div><BR></p><BR>...<BR><BR>Search.ajax.je:<BR>AjaxPlugins.Search
= {<BR> <BR> handleResponse: function(pluginOutput)
{<BR>
<BR> if
(pluginOutput.htmlCode.evenements)<BR>
$('search_results_div').innerHTML = pluginOutput.htmlCode.evenements;</P>
<P> } <BR>};</P>
<P><BR>/*<BR> * Search plugin's
Actions<BR> */<BR> <BR>AjaxPlugins.Search.Actions = {};</P>
<P>AjaxPlugins.Search.Actions.DoIt = {</P>
<P> buildPostRequest: function(argObject)
{<BR> return
AjaxHandler.buildPostRequest();<BR> }<BR>};</P>
<P>function order(column) {<BR> <BR>
<BR> if (column != $('search_sort_column').value)
{<BR> $('search_sort.column').value
= column;<BR> $('search_sort.direction').value =
'asc';<BR> } else {<BR> if
$('search_sort.direction').value ==
'asc'{<BR> $('search_sort.direction').value ==
'desc';<BR> } else
{<BR> $('search_sort.direction').value =
'asc';<BR> }<BR> }<BR> <BR>
CartoWeb.trigger('Search.DoIt');<BR>}</P><BR>
<P>function recenter(id) {</P>
<P> if ($('search_config').value ==
'evenements'{<BR> <BR> $('id_recenter_ids').value =
gid;<BR> $('id_recenter_layer').value = $('search_config').value;
<BR> <BR> <BR>
CartoWeb.trigger('Location.Recenter');<BR> }<BR>}</P>
<P> function search(config) {<BR>
<BR> $('search_config').value =
config;<BR> if (config == 'evenements')
{<BR> $('search_number').value =
10;<BR> }<BR> <BR>
CartoWeb.trigger('Search.DoIt');<BR> }<BR> <BR><BR>Thank
you!!!!!!<BR>Claire</P>
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BODY></HTML>