[mapserver-users] Displaying query result on the same page?
Steve Lime
Steve.Lime at dnr.state.mn.us
Sat Apr 18 22:48:25 PDT 2009
For frames you just set the form target to the frame of interest. You're code is quite close.
Still another option is to use AJAX/AJAST. You issue the query via an XMLHttpRequest and get the
results back in a javascript string or object that you can direct the contents of to a container (e.g. div)
on your page.
Steve
>>> "kreshna_iceheart at yahoo.com" <kreshna_iceheart at yahoo.com> 04/18/09 10:37 AM >>>
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
_______________________________________________
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