[mapserver-users] JS -- Query result in a new window
Martin, Daniel
DMartin at erac.com
Mon Nov 11 13:50:43 PST 2002
Off hand I don't see anything wrong with your code. My first suggestion is
to make sure you are getting inside the if statement. Simply add an alert.
if (document.mapserv.mode.value == "nquery") {
alert('Got Here');
document.mapserv.target = "_blank";
}
If you don't get the alert, then add another alert just prior to the if
statement:
alert(document.mapserv.mode.value);
-Dan Martin
> -----Original Message-----
> From: Till Adams [mailto:adams at terrestris.de]
> Sent: Monday, November 25, 2002 6:10 AM
> To: mapserver-users at lists.gis.umn.edu
> Subject: [mapserver-users] JS -- Query result in a new window
>
>
>
> Dear listers,
>
> I'm trying to get this machine doing, what I want ... but it doesn't
> want to.
> I use MS 3.6.1 and the Mapplet and just want to open a query in a new
> window and not in my map window. My JS code is as follows:
>
> <!--
> function mapplet_apply(name, minx, miny, maxx, maxy,
> redraw) {
> document.mapserv.imgbox.value = minx + " " + miny + " " +
> maxx + " " + maxy;
> document.mapserv.imgxy.value = minx + " " + miny;
> // if mode is set to query, open result in new window
> if (document.mapserv.mode.value == "nquery") {
> document.mapserv.target = "_blank";
> }
> else {
> document.mapserv.target = "_self";
> }
> if (redraw) {
> document.mapserv.submit();
> }
> }
> //-->
>
> Looks fine, but it doesn't work. Every idea is appreciated. Thank you
> very much in advance and have a nice weekend!
> Cheers,
> Till
> -- -- -- terrestris jetzt online! www.terrestris.de -- -- --
>
> -----
>
> Dipl. Geogr. Till Adams
> terrestris, Paulsen&Adams GbR
> Meckenheimer Allee 166 * 53115 Bonn
> Tel.: 0228 73 9647 * Fax.: 0228 73 6538
> info at terrestris.de * www.terrestris.de
>
More information about the MapServer-users
mailing list