query results in new window
Carola Jesch
cjesch at CCT.LSU.EDU
Sat Jan 21 17:02:20 PST 2006
Hi Steve,
Thanks a lot, it is working !
Carola
> -----Original Message-----
> From: Steve Lime [mailto:steve.lime at dnr.state.mn.us]
> Sent: Thursday, January 19, 2006 10:31 PM
> To: cjesch at CCT.LSU.EDU; MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] query results in new window
>
> Assuming you are using the CGI version of MapServer you need
> to do something when the form is submitted, that is use the
> onSubmit handler. That would simply call a bit of javascript
> that would detect whether the user was in a query mode or
> not. If in query mode then open a new window with window.open
> (you can set scollbars, size and all that with that method)
> and set the form.target to the window you just created. The
> MapServer demo does something similar but with a framed interface:
>
> http://maps.dnr.state.mn.us/mapserver_demos/workshop/index.html
>
> Choose the "adds frames" example and view the source for the
> upper frame and checkout the submit_form() function. It's
> pretty close to what you need. Just open the window first and
> set the form target appropriately.
>
> Steve
>
> >>> Carola Jesch <cjesch at CCT.LSU.EDU> 01/19/06 3:33 PM >>>
> Does nobody know an answer? Please help.
>
> Carola
>
> > -----Original Message-----
> > From: Carola Jesch [mailto:cjesch at cct.lsu.edu]
> > Sent: Thursday, January 19, 2006 6:54 AM
> > To: MAPSERVER-USERS at LISTS.UMN.EDU
> > Subject: getting the URL for window.open()
> >
> > Hi,
> > I am trying to figure out how to get query results displayed in a
> > second window and to give this new window some parameters like size
> > and scrollbars. I found Javascript for
> > new.window() function and it works well, but I haven't been able to
> > figure out how the javascript fits with MapServer.
> > How can I get the dynamic MapServer URL that is needed to
> display the
> > query results in that new window? I can do queries with form.target
> > ="_blank" but then I am not able to give this window the
> look I want.
> > Has anyone of you run into the same problem and can anybody
> point me
> > to a simple example?
> >
> > Thanks, Carola
> >
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Carola Jesch
> > Wetland Biogeochemistry Institute
> > Department of Oceanography and Coastal Science Louisiana State
> > University
> > 3191 Energy, Coast & Environment Bldg.
> > Baton Rouge, LA,70803
> > e-mail: cjesch at cct.lsu.edu
> >
>
More information about the MapServer-users
mailing list