[Mapserver-users] PHP Mapscript query results in new window

Dylan Keon keon@nacse.org
Fri, 25 Jul 2003 11:00:47 -0700


Joe Smith wrote:
> I used the gmap demo and got multiple item querying working, and I also got
> the results to display in a popup window.  However, I did it by editing the
> GmapDumpQueryResults() function to put "popWin.document.write();" around
> everything it printed so the results are written to the popWin window as it
> runs through the javascript.  The result is that the html source is pretty
> ugly.  Does anyone know a better way of displaying query results in a popup
> window (possibly using the mapfile's template)?  I'm using mapserver 3.6.6.

I store the query results as a PHP session variable.  Then I use 
window.open() to open a file called query.php into a popup window.  That 
file starts a session and loops through $_SESSION['results'], formatting 
the results into nice-looking tables within the pop-up window.

--Dylan

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users