[mapserver-users] Displaying query result on the same page?

kreshna_iceheart at yahoo.com kreshna_iceheart at yahoo.com
Sat Apr 18 11:36:20 EDT 2009


I hope this newbie question doesn't bother you.

See, I want to display query result on my map page, but if I use query mode, the query result replaces the whole page.

As workaround, I redirect the query result to a pop-up page using the following JavaScript:

        function toFrame() {
           if (document.mapserv.mode.value ==
 "query" || document.mapserv.mode.value ==
 "nquery") {
              document.mapserv.target = "_blank";
           } else {
              document.mapserv.target = "_self";
           }
        }

However, I'd also like to display the query result as part of the page (for example, on the lower right of the page), without replacing the entire page with the query result.

Is there any way to do such thing using CGI MapServer? Or is PHP MapScript the only way to do it?

I'm thinking about using HTML frames, but I'm still at loss to redirect the query result to a particular frame.

Many thanks,
-Kresh




      


More information about the mapserver-users mailing list