How to show query results in a new window.
David W Bitner
bitner at gyttja.org
Fri Jan 12 11:23:16 PST 2001
Displaying query results in a new window --
Using javascript you can set the target object in the form. This can allow you to change the output of a form submission to either a new window or a new frame. In order to do this, you need to be careful to reset the form target for other functions so that you are not constantly sending stuff to new windows. To see how this works, go to:
http://www.nohrsc.nws.gov/mapserv/ms_refmp/
The page automatically redirects you to one of two versions depending on your screen size -- if you have a small screen, query results will display in a new window, if you have a large screen query results will display in a frame on the right of the screen. All the scripts I used can be seen using the view source option in your browser. I handle all form submissions through JS so I simply set the form target in each of my functions to make sure everything gets directed to the right place.
Any questions, drop me a line.
David Bitner
*********************************************************************
David William Bitner -- GIS/ Remote Sensing Specialist
National Operational Hydrologic Remote Sensing Center
National Weather Service, Chanhassen, MN 55317
work: bitner at nws.gov, http://www.nohrsc.nws.gov
952-361-6610 x231, fax: 952-361-6634
personal: bitner at gyttja.org, http://www.gyttja.org
651-335-5232
*********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20010112/dcccb12f/attachment.htm>
More information about the MapServer-users
mailing list