[UMN_MAPSERVER-USERS] query in a new window

Richard Greenwood richard.greenwood at GMAIL.COM
Wed Apr 27 09:20:51 EDT 2005


Lluís Garcia i Mestres <lluisgm <at> GMAIL.COM> writes:

>
> Hi,
>
> I was following different examples to pop-up a new window when a query
> is done but it doesn´t work. I'm using jBox and I just want to open a
> specific windows for the query, having visible the map at the same
> time.
>
> Lluís
>
>


Use the javascript window.open() method. Example code:

var uri;
uri="/chg-bin/mapserv.exe?map=myMap.map&mapext=shapes
   &mode=nquery&template=tc.html";
uri+="&imgext=" + document.form1.imgext.value;
uri+="&imgxy=" + document.form1.imgxy.value;
uri+="&imgbox="+document.form1.imgbox.value;

infoWin = window.open(uri, "info",
   "width=375,height=400,resizable=yes,scrollbars=yes");
infoWin.focus();

Richard Greenwood



More information about the mapserver-users mailing list