Hi Manfred,<br>&nbsp;<br>I got the query working using query templates. But I want to image of the parcel to load in the image map.&nbsp; How would I go that?&nbsp; I bet I need another table by the parcel fields.&nbsp; And have the information load into that table.&nbsp; Then have a link PIN link go to the image in the image map. Here is my code your the html, query templates. Could you help me.<br><br>Albert<br><br><font size="2"><span style="font-family: arial narrow;">header query code</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&lt;br /&gt;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&lt;font size+1&gt;&lt;b&gt;Layer: Parcels&lt;/b&gt;&lt;/font&gt;</span><br style="font-family: arial narrow;"><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&lt;table border=1&gt;</span><br style="font-family: arial narrow;"><span style="font-family: arial
 narrow;">&lt;tr&gt;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&lt;th&gt;shpidx&lt;/th&gt;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&lt;th&gt;Pin No.&lt;/th&gt;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&lt;th&gt;Section&lt;/th&gt;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&lt;th&gt;Township&lt;/th&gt;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&lt;th&gt;Range&lt;/th&gt;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&lt;/tr&gt;</span><br style="font-family: arial narrow;"><br style="font-family: arial narrow;"><br style="font-family: arial narrow;"><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">parcels query code</span><br style="font-family: arial narrow;"><span style="font-family:
 arial narrow;">&lt;tr&gt;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&nbsp;&nbsp;&nbsp; &lt;td&gt;[shpidx]&lt;/td&gt;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&nbsp;&nbsp;&nbsp; &lt;td&gt;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&lt;a href="http://[host]/cgi-bin/mapserv?</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">mode=indexquerymap&amp;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">qlayer=parcels&amp;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">shapeindex=[shpidx]&amp;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">shpext=[shpext_esc]&amp;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">mapext=shape&amp;</span><br style="font-family: arial
 narrow;"><span style="font-family: arial narrow;">map=[map]"&gt;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&nbsp;&nbsp;&nbsp; [PIN]</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&nbsp;&nbsp;&nbsp; &lt;/a&gt;&lt;/td&gt;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&nbsp;&nbsp;&nbsp; &lt;td&gt;[SCT]&lt;/td&gt;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&nbsp;&nbsp;&nbsp; &lt;td&gt;[TWP]&lt;/td&gt;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&nbsp;&nbsp;&nbsp; &lt;td&gt;[RNG]&lt;/td&gt;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&lt;/tr&gt;</span><br style="font-family: arial narrow;"><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">html code</span><br style="font-family: arial narrow;"><span
 style="font-family: arial narrow;">&lt;SCRIPT TYPE="text/javascript" LANGUAGE="javascript"&gt;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&nbsp; function SetSec(){</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&nbsp;&nbsp;&nbsp; var s = document.the_map.SCT.value;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&nbsp;&nbsp;&nbsp; var t = document.the_map.T.value;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&nbsp;&nbsp;&nbsp; var r = document.the_map.R.value;</span><br style="font-family: arial narrow;"><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">window.parent.location.href = "http://10.56.67.192/cgi-bin/mapserv?map=/home/mapdata/richland.map&amp;mode=itemquery&amp;mapext=shapes&amp;slayer=parcels&amp;imgxy=309 419&amp;imgext=625173.309834 5085113.091715 718065.960556
 5160035.212592&amp;mapshape=&amp;imgshape=&amp;imgbox=&amp;qstring=('[SCT]'='" + s + "' AND '[TWP]'='" + t + "' AND '[RNG]'='" + r + "')&amp;qlayer=parcels&amp;qitem=&amp;shapeindex=&amp;savequery=";&nbsp; </span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">}</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">&lt;/SCRIPT&gt;</span></font><br><br><b><i>Manfred Meier &lt;m.meier@SPIEKERMANN.DE&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hi Albert,<br><br>about the query: your three input fields are named "SCT", "T" and "R". <br>They sit in a form named "the_map" (if you used this name). The GO <br>button is no submit button. It does not submit the form, it calls the <br>javascript function "SetSec()" if you clicking it.<br><br>This function gets the values of the three input fields and stores them <br>in three variables
 "s", "t" and "r". Then it redirects the browser by <br>setting ...location.href property to a new constructed url.<br><br>As you can see in Lawrence's original code, this url contains the <br>query-string for the mapserver like "[TWP]="+t where the value of "t" is <br>filled in. Sorry if this is trivial: the names in [] must match the <br>fieldnames in your data-source (perhaps dbf-file).<br><br>Yesterday I had a problem in my example to construct this query. Dave <br>Fawcett wrote on my mail the following example:<br><br>      http ... &amp;qstring=([ZELNR]=1405)<br><br>I had some '-characters around it like qstring=('[ZELNR]'='1405')<br>  and got not the correct result. So you have to experiment a bit I think.<br><br>If you are unsure if your url is built correct you can do the following: <br>(from Lawrence's code)<br><br>   function SetSec(){<br>     var s = document.the_map.SEC.value;<br>     var t = document.the_map.T.value;<br>     var r =
 document.the_map.R.value;<br><br>     //Store the new URL into a vraiable and show it before sending it<br>     var u = <br>"/JasperMaps/cgi-bin/mapserv.exe?&amp;program=%2FJasperMaps%2Fcgi-bin%2Fmapserv.exe&amp;map=C%3A%5CInetPub%5Cwwwroot%5CMapdocs%5CLandCorner.map&amp;zoomsize=2&amp;layers=ortho+Monuments+LandCorners+Water+Shields+Highways+Roads+County+Sections+Quarter+Towns+Township&amp;mode=itemquery&amp;mapext=shapes&amp;slayer=Sections&amp;imgxy=320+240&amp;imgext=1680507.39+547052.00+1844030.00+680312.51&amp;mapshape=&amp;imgshape=&amp;imgbox=&amp;qstring=('[SECTION_]'='"<br>     alert (u);  // show it in a message box<br>window.parent.location.href = u;<br>}<br><br>Manfred<br><br>Albert Anderson schrieb:<br><br>&gt; Hi Manfred,<br>&gt; <br>&gt;  Thanks. I got my panning working.  Thanks for explaining it.  I think I <br>&gt; understand it now that they all have to be one name.  Thanks for your <br>&gt; help.  I am still working on the query.<br>&gt; <br>&gt;
 Thanks,<br>&gt; Albert<br>&gt; <br>&gt; Manfred Meier <m.meier@spiekermann.de> wrote:<br>&gt; <br>&gt;     Hi Albert,<br>&gt; <br>&gt;     I copied your html code to my local server and use it for the template<br>&gt;     in the mapfile.<br>&gt; <br>&gt;     The result is: the Map Tools, Map Layers, Reference Map, legend titles<br>&gt;     appear. The icons for the radio buttons do not appear but that's no<br>&gt;     problem.<br>&gt; <br>&gt;     The map appears (with some data of mine). If I click on one of the map<br>&gt;     tools, and then into the map, then their is the correct effect. The map<br>&gt;     zooms in or out or recenters.<br>&gt; <br>&gt;     When I click on the corners of the map margin (for pan), then I get a<br>&gt;     javascript error because "document.mapserv" is undefined.<br>&gt; <br>&gt;     When I click on the GO button (which took a time to find it) I get<br>&gt;     another javascript error, because "document.corner" is undefined. In<br>&gt; 
    Lawrence's source code you see that "Corner" is the name of a form.<br>&gt;     Your go-Button is in the form "the_form".<br>&gt; <br>&gt;     Then I have changed "the_form" to "the_map" and i have changed<br>&gt;     "mapserv"<br>&gt;     in "document.mapserv" to "the_map". Then i deleted the line<br>&gt;     "document.the_map.mode[0].checked=true" because this has an error<br>&gt;     anywhere.<br>&gt; <br>&gt;     Now the pan functions on the corner of the image are working. Not<br>&gt;     perfect but they do. They pan an zoom. But I think this a not a big<br>&gt;     problem to solve.<br>&gt; <br>&gt;     I have changed the "document.corner" into document.the_map. So now the<br>&gt;     Go button kind of works. It produces a fresh page.<br>&gt; <br>&gt;     And I have changed the [program] placeholders to my actual url<br>&gt;     because I<br>&gt;     don't know where to set this value.<br>&gt; <br>&gt;     Try to do the changes and test every step.<br>&gt;
 <br>&gt;     I'm now out. Perhaps til tomorrow.<br>&gt; <br>&gt;     Manfred<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt;     Albert Anderson schrieb:<br>&gt; <br>&gt;      &gt; Hi Manfred Meier,<br>&gt;      &gt;<br>&gt;      &gt; I dont know about the errors cause I do not for sure how to open the<br>&gt;      &gt; html code direct in the browser. I have javascript for panning<br>&gt;     arrows<br>&gt;      &gt; around the image that I couldnt get working.<br>&gt;      &gt;<br>&gt;      &gt; For the go button to I have to set some sort of vaule to that? I<br>&gt;     dont kow.<br>&gt;      &gt;<br>&gt;      &gt; Thanks,<br>&gt;      &gt; Albert<br>&gt;      &gt;<br>&gt;      &gt; Manfred Meier wrote:<br>&gt;      &gt;<br>&gt;      &gt; Hi Albert,<br>&gt;      &gt;<br>&gt;      &gt; when I load the html code into the browser then I get javascript<br>&gt;     errors<br>&gt;      &gt; (status line of
 internet explorer) because document.the_map and<br>&gt;      &gt; document.mapserv are undefined. "document.the_map" is used in the<br>&gt;      &gt; javascript function set_Mode which is called in the onload event.<br>&gt;      &gt; Do you get these errors too?<br>&gt;      &gt;<br>&gt;      &gt; Maybe they come only here because I opened the html code direct<br>&gt;     in the<br>&gt;      &gt; browser.<br>&gt;      &gt;<br>&gt;      &gt; Manfred<br>&gt;      &gt;<br>&gt;      &gt;<br>&gt;      &gt; Albert Anderson schrieb:<br>&gt;      &gt;<br>&gt;      &gt; &gt; Hi Lawrence,<br>&gt;      &gt; &gt;<br>&gt;      &gt; &gt; I tried copying your code and changing out your information to fit<br>&gt;      &gt; &gt; mine. Its not working to well. My button isnt doing anything.<br>&gt;      &gt; Here is<br>&gt;      &gt; &gt; my html code. Maybe you can look at it? I dont know what I am<br>&gt;     doing.<br>&gt;      &gt; &gt; Thanks, Albert<br>&gt;      &gt; &gt;<br>&gt;     
 &gt; &gt; .....<br>&gt;      &gt;<br>&gt;      &gt;<br>&gt;      &gt;<br>&gt;      &gt;<br>&gt;     ------------------------------------------------------------------------<br>&gt;      &gt; Yahoo! Messenger with Voice. Make PC-to-Phone Calls<br>&gt;      &gt;<br>&gt;      &gt; to the US (and 30+ countries) for 2�/min or less.<br>&gt; <br>&gt; <br>&gt; ------------------------------------------------------------------------<br>&gt; How low will we go? Check out Yahoo! Messenger�s low PC-to-Phone call <br>&gt; rates. <br>&gt; <http: //us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt="39663/*http://voice.yahoo.com"><br></http:></m.meier@spiekermann.de></blockquote><br><p> 
                <hr size=1>Do you Yahoo!?<br> Next-gen email? Have it all with the <a href="http://us.rd.yahoo.com/evt=42241/*http://advision.webevents.yahoo.com/handraisers"> all-new Yahoo! Mail Beta.</a><p>&#32;__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com