hi list.<br><br>i'm using some javascript to do a query. it gets information from html combo boxes.<br><br>##############################<br><br> function determinaQSTRING() {<br> //converting everything into variables:
<br> //host information:<br> var hostPar = "<a href="http://localhost:82/zaal/al.php?">http://localhost:82/zaal/al.php?</a>";<br> //keymap:<br> var keymapPar = "KEYMAPXSIZE=100&KEYMAPYSIZE=75&";
<br> //fixed layers:<br> var layerFixa = "Limite_Estadual_AL=Y&grid=Y&";<br> //get layer used on query from combobox:<br> var layer = document.pesquisa.layersList.value;<br>
<br> var modePar = "&CMD=QUERY_POINT&INPUT_TYPE=submit&";<br> <br> //map image attributes:<br> var imagePar = "imagewidth=760&imageheight=570";<br><br> //get query string from combobox:
<br> var queryEntry = document.pesquisa.nameList.option;<br> //get operator from combobox:<br> var operador = document.pesquisa.operadores.value;<br> <br> //get coordinates from combobox:
<br> var allComboValue = document.pesquisa.nameList.value;<br> var allComboValueArray = allComboValue.split(',');<br> var minx = "minx=" + allComboValueArray['0'] + "&";
<br> var miny = "miny=" + allComboValueArray['1'] + "&";<br> var maxx = "maxx=" + allComboValueArray['2'] + "&";<br> var maxy = "maxy=" + allComboValueArray['3'] + "&";
<br><br> //query string: <br> document.pesquisa.qstring.value = "(\"[NOME]\" "+ operador +" /"+ queryEntry +"/)";<br><br> //reload map:<br> window.opener.document.location
= hostPar + keymapPar + layerFixa + layer + "=Y&" + minx + miny + maxx + maxy + imagePar + modePar + "INPUT_COORD=390%2C285%3B390%2C285";<br> }<br><br clear="all">############################<br>
<br>ok, its very ugly, but i though it would work. my problem is in the type of query.<br><br> var modePar = "&CMD=QUERY_POINT&INPUT_TYPE=submit&";<br><br>it only does query by point, i'm trying to use query by rect.
<br>already tried auto_rect but didn't work too.<br><br>what can i do?<br><br><br>thanks in advance :)<br><br><br>-- <br>Eduardo Zenaide