[mapserver-users] PHP, HOW??: Returning Results to Multiple Windows

woodbri at swoodbridge.com woodbri at swoodbridge.com
Tue Jul 16 14:20:10 EDT 2002


Chip,

I do not believe there is a way for the server to send a response 
back to the client that will generate a new window. This can only be 
done via client side methods like javascript or target="somewindow" 
on an existing page.

this site does what you want:

http://atlas.gc.ca/site/english/maps/environment/land/landcover?map=%2
Fhome%2Fmapdata%2Faoc_v3%2Fenglish%2F21028.map&imgext=557254.701810+-
680077.824843+2140864.014310+725930.443264&mode=browse&scale=5244128.1
5837856&imgxy=&mapext=&img.x=247&img.y=203

It does the following trickery on the form submit to pop up a new 
window for results but does not deal with updating the image:

    <form name="actionform" method="get" 
action="http://atlas.gc.ca/site/english/maps/environment/land/landcove
r#map" onSubmit="if (document.actionform.mode.value == 'nquery') { 
document.actionform.action='/cgi-bin/mapserv'; 
window.open('','query','height=360,width=500,location=no,menubar=no,re
sizable=yes,scrollbars=yes,status=yes,personal=no'); 
document.actionform.target='query'; }">

HTH,
  -Steve

On 16 Jul 2002 at 12:13, Hankley, Chip wrote:

> Kind of a generic server side processing question.
> 
> I'm running a querybypoint operation w/ PHP MapScript. I can collect the
> results in an array, highlight the selected records, etc. etc., all in the
> same window. BUT, what I want to do is display the selected records in a
> table in a NEW window. So... I want the server-side stuff to do something
> like this.
> 
>           Receive Input
>                 |
>                 V
>          Query Shapefile
>                 |
>                 V
>       Return Results to Array
>                 |
>                 V
>      Refresh Map in Existing Window
>        (showing selected records)
>                 |
>                 V
>      Display the Attributes of
>      the Selected Records in a 
>            New Window
> 
> It's this last step that I'm having a hard time with...I would think it
> should be simple. Thanks for any suggestions!
> 
> Cheers!
> 
> 
> Chip Hankley
> 





More information about the mapserver-users mailing list