[Mapserver-users] queryfile
Steve McCrone
ms57 at streamyx.com
Thu Mar 4 06:29:05 PST 2004
Just a follow up on the previosu question. I have modified the code and it
looks like the correct string (i.e. path and file name) are being assigned
to queryfile. On the first zoomin, the *.qy file is created in tmp/
directory and the highlighted polygon remains. But on the second zoomin, a
new *.qy file apears in the alert dialog, but this file does not get created
in the tmp directory, and therefore, "Unable to access file" error occurs.
Thanks
Steve
<SCRIPT language=JavaScript>
var qfile = ("[queryfile]".substring(0,1) != "[") ? "[queryfile]" : "";
</SCRIPT>
if (qfile){
document.write("<input type='hidden' name='queryfile' value=''>");
imgPath = document.mapserv.map_web_imagepath.value + "\DEMO" + [id] +
".qy";
alert(imgPath)
document.mapserv.queryfile.value = imgPath
}
</SCRIPT>
More information about the MapServer-users
mailing list