[Mapserver-users] Checkbox with java help

christian.schuster at rsag.ch christian.schuster at rsag.ch
Thu Feb 13 08:48:08 EST 2003




oh sorry I was to quick: It is not checked it is check

So it would be like this

<input type="checkbox" name="layer" value="florida_roads1" align="left"
[florida_roads1_check] onClick="Refresh();" > Roads 1<br>

Christian Schuster

Rudolf Schuster AG
Postfach 277
CH - 3000 Bern 11

http://www.rsag.ch
++41 31 348 05 30


                                                                           
             christian.schuste                                             
             r at rsag.ch                                                     
             Sent by:                                                   To 
             mapserver-users-a         "Kevin Slover"                      
             dmin at lists.gis.um         <Kevin.Slover at noaa.gov>             
             n.edu                                                      cc 
                                       Mapserver Mailing-List              
                                       <mapserver-users at lists.gis.umn.edu> 
             13.02.2003 14:44          ,                                   
                                       mapserver-users-admin at lists.gis.umn 
                                       .edu                                
                                                                   Subject 
                                       Re: [Mapserver-users] Checkbox with 
                                       java help                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           








Make sure that you also have the tag ["layer name"_checked] included in the
html input tag.

Change your input tag as following

<input type="checkbox" name="layer" value="florida_roads1" align="left"
[florida_roads1_checked] onClick="Refresh();" > Roads 1<br>

Christian Schuster

Rudolf Schuster AG
Postfach 277
CH - 3000 Bern 11

http://www.rsag.ch
++41 31 348 05 30



             "Kevin Slover"
             <Kevin.Slover at noa
             a.gov>                                                     To
             Sent by:                  Mapserver Mailing-List
             mapserver-users-a         <mapserver-users at lists.gis.umn.edu>
             dmin at lists.gis.um                                          cc
             n.edu
                                                                   Subject
                                       [Mapserver-users] Checkbox with
             13.02.2003 14:36          java help










Hello all!!
 Looking for a little bit of help right now.  The small problem is as
follows:
  I am using a checkbox to select which layer is to be displayed.
Following a few of the examples out there, I have been able to get the
display to refresh on click.  However, the checkbox becomes unchecked.
And I am only able to display one layer at a time... I am not sure where
the problem resides, I have looked at several other sites, and they have
the same code... mine is as follows:

  function Refresh(){
   document.mapserv.target = "";
   document.mapserv.mode.value = "browse";
   document.mapserv.submit();
  }

<form name="mapserv" method=GET action="[program]">

<input type="checkbox" name="layer" value="florida_roads1" align="left"
onClick="Refresh();" > Roads 1<br>
etc.. etc... etc..

I am using jBox, with version 3.6.4 on a RH 7.2.  Any ideas!
Thanks! Cheers!
--
LTJG Kevin Slover, NOAA
GIS Specialist/Oceanographer
NOAA/TPC/TSB/Storm Surge Unit
11691 SW 17th Street
Miami FL  33165

W (305) 229-4456
_______________________________________________
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