[mapserver-users] Cannot display query result in popup window

Andrew Mason andrew at environ-it.co.uk
Tue Jul 8 06:47:37 EDT 2008


Kresh,

I may be missing something, but your toFrame() function doesn't seem  
to be called at any point.
I'd have expected it to be called sometime before the form is submitted.

Andrew


On 8 Jul 2008, at 11:28, kreshna_iceheart at yahoo.com wrote:

> Hi,
>
> I'm using MapServer for Windows. I made a query on my map. The  
> query result is displayed properly, but I cannot display it on a  
> popup window. The query result is always displayed on the same  
> browser window, "replacing" the map with the result.
>
> I have added the following scripts on my template:
>        function toFrame() {
>           if (document.mapserv.mode.value == "query" ||  
> document.mapserv.mode.value == "nquery") {
>              document.mapserv.target = "_blank";
>           } else {
>              document.mapserv.target = "_self";
>           }
>        }
>
> Yet the query above simply does not work; the result of the query  
> is always displayed on the same browser window ("replacing" my map)  
> instead of displayed in a popup window.
>
> Am I doing the right thing? I also attach the map file, the HTML  
> template, and the query template. Many thanks.
> -Kresh
>
>
>
>
>
>
>
>
>
> <GABUNGAN.map><GABUNGAN_tmpl.html><GABUNGAN_query_desa.html>__________ 
> _____________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list