pass URL arguments to DHTML mapserver interface

Bart van den Eijnden BEN at SYNCERA-ITSOLUTIONS.NL
Fri Apr 22 08:20:47 PDT 2005


Dylan,

I think you can use javascript to do this.

Use document.location.search in your mapserver_page.html and set a respective FORM variable using document.myform.myelement.value, or just add it to the Mapserver URL as a string.

Best regards,
Bart

Bart van den Eijnden
Syncera-ITSolutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl

>>> Dylan Beaudette <dylan at IICI.NO-IP.ORG> 04/22/05 04:49pm >>>
Hi everyone,

Having recently experimented with the DHTML UMN site, I have to say
that it is a very elegant solution with clear documentation within the
source code.

So far i have been able to pass arguments on the URL to the DHTML
interface such that:

mapserver_page.html?variable=value

where 'variable' and its value are accessible to the JS code within the
DHTML page.

However, I cannot seem to figure out how to get these variables passed
on to the mapserver CGI when it is called.

For example, I would like to call the DHTML page with some parameters:

mapserver_page.html?county=CA_19

...which are then passed on to the mapserver CGI:

/path/to/cgi/mapserv?county=CA_19


is there currently any way of doing this?

thanks in advance, and thanks to the mapserver folks for the excellent
DHTML examples!


--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341



More information about the MapServer-users mailing list