[Mapserver-users] itemquery followed by query

Steve McCrone ms57 at streamyx.com
Sun Mar 7 06:12:17 PST 2004


All my tools are working when I call the findLake('BOWSTRING') it zooms to
the correct lake and highlihts it
My info(query) tool works fine as well. But, when I call the info(query)
tool immediatley after the calling findLake(' ..'), there is no query
template shown - the page gets submitted back to it's origial extents. I've
included some relevatn lines,

Thanks,

Steve


 followed by the info (query button) it seems like the page gets submitted
but back to the original


 function findLake(sLake){
  document.mapserv.mode.value = "itemquery";
  document.mapserv.savequery.value = "true";
  document.mapserv.qlayer.value = "LAKE_QUERY";
  document.mapserv.qitem.value = "Lake_name";
  document.mapserv.qstring.value = sLake;// pas in "BOWSTRING";
  document.mapserv.mapext.value = "shapes";
  document.mapserv.buffer.value = "5000";
  document.mapserv.submit();
 }


<!--================Hidden Variables=================================-->
<input type=text name=mode value=[mode]>
<input type="hidden" name="zoomdir" value=[zoomdir]>
<input type=hidden name=zoomsize value=2>
<input type=hidden value="cities lakespy2 dlgstln2" name=layers>
<input type="hidden" name="imgxy" value="299.5 299.5">
<input type="hidden" name="imgext" value="[mapext]">
<input type="hidden" name="map" value="[map]">
<input type="hidden" name="program" value="[program]">
<input type="hidden" name="map_web_imagepath" value="[map_web_imagepath]">
<input type="hidden" name="map_web_imageurl" value="[map_web_imageurl]">
<input type="hidden" name="map_web_template" value="[map_web_template]">
<input type="hidden" name="imgbox" value="-1 -1 -1 -1">
<input type="hidden" name="mapext" value="">
<input type="hidden" name="qlayer" value="">
<input type="hidden" name="qitem" value="">
<input type="hidden" name="qstring" value="">
<input type="hidden" name="buffer" value="">
<input type="hidden" name="savequery" value="">

//following when user activates info(query) button/tool
case "image5"://query
document.mapserv.mode.value = "query";
document.jBox.boxoff();
document.mapserv.zoomdir.value = 0;
break;





More information about the MapServer-users mailing list