[mapserver-users] PHP, HOW??: Returning Results to Multiple W indows
Martin, Daniel
DMartin at erac.com
Tue Jul 16 14:20:54 PDT 2002
Using Javascript, you can create a new window and perform document.write to
that new window.
Paste this into the body of any HTML page, and I think you'll have a
starting point:
<script language="JavaScript" type="text/javascript">
<!--
url=""
popupWin = window.open(url,'new_page','width=300,height=200')
myString = "<html>"
myString += "<head>"
myString += "<title>My New Window</title>"
myString += "</head>"
myString += "<body>"
myString += "This is my example.<BR>"
myString += "How do you like it?<BR>"
myString += "</body>"
myString += "<html>"
popupWin.document.write(myString)
//-->
</script>
Now all you have to do is append your query results into myString.
Hope it helps.
-Dan
-----Original Message-----
From: Puneet Kishor [mailto:pkishor at GeoAnalytics.com]
Sent: Tuesday, July 16, 2002 2:15 PM
To: 'Hankley, Chip'; MapServer List (E-mail)
Subject: RE: [mapserver-users] PHP, HOW??: Returning Results to Multiple
W indows
afaik, you can't tell the server to "push" two windows. However, you can
readily tell the client to spawn an additional window that "pulls" the
correct script from the server.
attach a window spawning function to any client-side object that fires
either by user interaction or by onload.
pk/
> -----Original Message-----
> From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com]
> Sent: Tuesday, July 16, 2002 12:14 PM
> To: MapServer List (E-mail)
> Subject: [mapserver-users] PHP, HOW??: Returning Results to Multiple
> Windows
>
>
> 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