<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18828">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>hello</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>the idea here is to put some unnammed hidden input in your
template, and, when needed, set the input's name and value with javascript to
dynamicaly send some extra parameters to the server.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>unnamed hidden input are ignored by default, so they dont have
any effect</FONT></DIV>
<DIV><FONT size=2>by setting their names and values by javascript, we "activate"
them and they will have an effect </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>here the parameters are </FONT><FONT size=3><EM>'query_layer',
'query_select', 'query_hilight' and 'layer_select'</EM></FONT></DIV>
<DIV> </DIV>
<DIV>you can put the hidden input in any template you want, as long as that
template is loaded when you need it. in your case, when you want to have
"highlight" (colored result) on ID recenter, you can add the input in the id
recenter template (id_recenter.tpl), I believe it is the place that make the
more sens.</DIV>
<DIV> </DIV>
<DIV><FONT size=2>also, you must change the javascript called when you clic on
the submit button for the ID rencentering (if you are still using the default id
rencentering template) so the function does not call directly
CartoWeb.trigger('Location.Recenter'); but does the hidden inputs name and
values replacement first and call CartoWeb.trigger('Location.Recenter'); when
it's done.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>regards</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=jana.rysava@gmail.com href="mailto:jana.rysava@gmail.com">Jana
Rysava</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=oliver.christen@camptocamp.com
href="mailto:oliver.christen@camptocamp.com">oliver.christen@camptocamp.com</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, November 11, 2009 9:29
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> colored result from id
recenter</DIV>
<DIV><BR></DIV>Hi Oliver,<BR>I have own project in cartoweb aplication.
And I need to colored result from ID recenter.
<DIV dir=ltr id=result_box>I found this <A
href="http://lists.maptools.org/pipermail/cartoweb-users/2007-September/002926.html">http://lists.maptools.org/pipermail/cartoweb-users/2007-September/002926.html</A>
, but I do not understand where to
add<BR>query_layer<BR>query_select<BR>query_hilight ?<BR>
<DIV dir=ltr id=result_box>I should it add to <B><I>locate.tpl</I></B> ? Or
here only to add this:<BR><PRE><I> var l1 = $('locate1');<BR></I>><I> var l2 = $('locate2');<BR>
</I>><I> var l3 = $('locate3');<BR></I>><I> var l4 = $('locate4');<BR></I>><I> var l5 = $('locate5');<BR></I>><I> <BR></I>><I> <A href="http://l1.name">l1.name</A> = 'query_layer';<BR>
</I>><I> l1.value = input_element.alt;<BR></I>><I> <A href="http://l2.name">l2.name</A> = 'query_select';<BR></I>><I> l2.value = <A href="http://item.id">item.id</A>;<BR></I>><I> <A href="http://l3.name">l3.name</A> = 'query_hilight';<BR>
</I>><I> l3.value = 1;<BR></I>><I> <A href="http://l4.name">l4.name</A> = 'query_return_table';<BR></I>><I> l4.value = 0;<BR></I>><I> <A href="http://l5.name">l5.name</A> = 'layer_select';<BR>
</I>><I> l5.value = input_element.alt;<BR><BR></I><I> and at the end, add:<BR></I>><I> <BR></I>><I> <input type="hidden" id="locate1" /><BR></I>><I> <input type="hidden" id="locate2" /><BR>
</I>><I> <input type="hidden" id="locate3" /><BR></I>><I> <input type="hidden" id="locate4" /><BR></I>><I> <input type="hidden" id="locate5" /><BR>
</I><BR></PRE>
<DIV dir=ltr id=result_box>Also attach my project Sample here.<BR><BR>Thank
you very much, <BR>best regards Jana<BR></DIV></DIV><BR></DIV>.
</BLOCKQUOTE></BODY></HTML>