You can probably do it with query/browse templates but the other methods are more efficient and provide a better user experience and are easier to configure.
Steve >>> On 4/20/2009 at 1:07 AM, in message <860869.57172...@web110602.mail.gq1.yahoo.com>, "kreshna_icehe...@yahoo.com" <kreshna_icehe...@yahoo.com> wrote: > Thank you, Steve. > > It seems frames and/or AJAX are the only way to display query result on the > same page when using CGI MapServer, am I correct? > > -Kresh > > > --- On Sun, 4/19/09, Steve Lime <steve.l...@dnr.state.mn.us> wrote: > >> From: Steve Lime <steve.l...@dnr.state.mn.us> >> Subject: Re: [mapserver-users] Displaying query result on the same page? >> To: mapserver-users@lists.osgeo.org, kreshna_icehe...@yahoo.com >> Date: Sunday, April 19, 2009, 1:48 AM >> 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_icehe...@yahoo.com" >> <kreshna_icehe...@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@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users