[Mapserver-users] query results in a new window

Eduardo Spremolla edspremolla at Antel.com.uy
Tue Jun 17 10:45:50 EDT 2003


If you are using CGI try this:

<SCRIPT LANGUAGE="JavaScript">
function nueva(){
if (document.getElementById("mode").checked==false )
{ document.getElementById("mapserver").target="_blank"; }
else
{ document.getElementById("mapserver").target="mapa"; }
 }

function init(){
   window.name="mapa";
}
</SCRIPT>

  <body onLoad="init();">
    <form method="GET" id="mapserver" action="/cgi-bin/mapserv" >

.....

      <input type="radio" id="mode" value="browse" checked
onClick="nueva();"> <b>Navegar mapa</b><br>
      <input type="radio"  value="query" onClick="nueva();"> <b>Consulta
objeto</b><br>
      <input type="radio" value="nquery" onClick="nueva();"> <b>Consulta
mult. objetos</b>


I only don't know how to set the size of the new window, it gets opened
with the same size of the main one.

Eduardo Spremolla
Montevideo,Uruguay



El mar, 17 de 06 de 2003 a las 10:33, Lowell Filak escribió:
> The User Meeting proceedings should have tutorials for exactly that.
> You may want to keep checking the "USER MEETING" link on the homepage.
> Lowell F.
> 
> The following message was sent by "Marco Cagnoli"
> <m.cagnoli at sta.roma.it> on Tue, 17 Jun 2003 14:14:13 +0200.
> 
> > Hi,
> > is it possible showing query results in an other window of the browser?
> > 
> > Thanks,
> > Marco
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list