<div>Thanks for your reply guys, i am able to do what i want ...</div> <div> </div> <div>kris<BR><BR><B><I>Piero Cavalieri <piero.cavalieri@HEIDI.IT></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">And on client side, something like this (this is only a piece):<BR><BR>function retrieveMap()<BR>{<BR><BR>var layersString = getLayers();<BR>baseUrl = document.getElementById("baseUrl").value;<BR>imgext = document.getElementById("imgext").value; //existing inline <BR>image<BR><BR>imgbox = document.getElementById("imgbox").value; //setted by dbox<BR>imgxy = document.getElementById("imgxy").value; //setted by dbox<BR><BR>//build url<BR>queryString = baseUrl + layersString + "&mode=browse" + zoomStr <BR>+"&imgext=" + imgext + "&imgbox=" + imgbox + "&imgxy=" + imgxy;<BR>if(jsDebug == 1) alert(queryString);<BR><BR>mapsrvNet.AjaxMethods.getMap(queryString,
retrieveMapImage_callback);<BR>}<BR><BR>function retrieveMapImage_callback(res)<BR>{<BR>if(jsDebug == 1) alert("\nres.error: " + res.error +"\nres.value: <BR>"+res.value+"\nType of res.value: "+typeof(res.value));<BR>try {<BR>if(typeof(res.value) == 'object' && res.error == null) {<BR>//immagini<BR>imgMapOff.src = res.value.mapImgUrl;<BR>imgRefOff.src = res.value.referenceMap;<BR>imgScalebarOff.src = res.value.scalebar;<BR>if(jsDebug == 1) <BR>alert(imgMapOff.src+"\n"+imgRefOff.src+"\n"+imgScalebarOff.src);<BR>//hidden variables<BR>document.getElementById("mapwidth").value = res.value.mapwidth;<BR>document.getElementById("mapheight").value = <BR>res.value.mapheight;<BR>document.getElementById("imgxy").value = res.value.imgxy;<BR>document.getElementById("imgext").value = res.value.imgext;<BR>document.getElementById("legend").innerHTML = res.value.legend;<BR>document.getElementById("referenceMap").value = <BR>res.value.referenceMap;<BR>if(jsDebug == 1)
alert(res.value.legend);<BR>setTimeout("updateImg()",swapMapImageTime);<BR>} else {<BR>throw res.error.toString();<BR>}<BR>} catch (exception) {<BR>this.status = "----------- PROBLEMS RETRIEVING MAP ! -------------";<BR>if(jsDebug == 1) { alert(exception); }<BR>}<BR>}<BR><BR>You could work in similar ways for query mode, etc.<BR>This was build using AjaxPro <BR>(http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxProStarterKit).<BR>Obviously this is only one possible way to work with MapserverCGI.<BR><BR>Ciao<BR>Piero<BR><BR>Tamas Szekeres ha scritto:<BR>> How about:<BR>><BR>> http://www.nabble.com/WMS-Server-call-in-.net-tf1577953.html#a4295350<BR>><BR>> Tamas<BR>><BR>><BR>><BR>> 2006/7/27, rock well <ROCKWELL_001@YAHOO.COM>:<BR>>><BR>>> Hello all, i am trying to generate a map by requesting the map server <BR>>> using<BR>>> like a proxy call to the server. I found this asp script in<BR>>>
http://mapserver.gis.umn.edu/docs/howto/wms_server which<BR>>> does the same, when i used the same script in asp.net i found that .net<BR>>> doesnt support xmlhttp, so i registered the required dlls for .net to<BR>>> support xmlhttp, but still the script doesnt give me any output .... Are<BR>>> there any changes to be made in this script to make it work in <BR>>> asp.net ...<BR>>><BR>>> well i am sorry if this post is unclear, i could provide with more<BR>>> information if you need ..<BR>>><BR>>> Thanks for your effort and time .....<BR>>> kris<BR>>><BR>>><BR>>> ________________________________<BR>>> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.<BR>>><BR>>><BR>><BR><BR><BR>--<BR>Il contenuto di questo messaggio e' confidenziale e la lettura non<BR>autorizzata dello stesso viola i diritti di privacy del mittente e del<BR>destinatario.<BR><BR>Se avete
ricevuto questo messaggio per errore siete pregati di<BR>rimuoverlo dal Vostro sistema.<BR></BLOCKQUOTE><BR><p>
<hr size=1>Groups are talking. We´re listening. Check out the <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=41144/*http://groups.yahoo.com/local/newemail.html">handy changes to Yahoo! Groups.</a>