[Mapserver-users] Re: some javascript help

pkishor_98 pkishor at geoanalytics.com
Mon Mar 17 11:27:39 PST 2003


I could be wrong in my understanding, but I believe document.write
will only function when the page is being loaded. Once the page is
loaded, you can't modify it without recreating it. (Of course, IE
might allow this, while Mozilla and co, I am pretty sure, do not).

What you can do, otoh, is to pre-create your bank of checkboxes and
hide them using STYLE="display:none;" on a wrapping table or div.
Then, add an onchange method to your select box to unhide the table
(or div) containing checkboxes by resetting the style of that container.

This would work fine. I use this method to create a tabbed interface
in my map application... each tab showing something different.


--- In mapserver-users at yahoogroups.com, "Kevin Slover"
<Kevin.Slover at n...> wrote:
> I am looking for some direction on how I should accomplish something...
> What I am trying to do is to create a pull-down menu to allow the user
> to choose the storm that they would like to work with.  When a storm is
> chosen, then the different variables for the storm are dispayed in a
> checkbox format (i.e. storm surge, storm center, track).  I am trying to
> get the document.write to write the checkboxes to the same page,
> underneath the pull-down menu, but I am guessing it is not working.
>     Am I going to have to, with each storm selected, recreate the entire
> page using document.write()?  It is tough to explain, sorry... I have
> looked at several pages with pull down menus changing certain
> parameters, but to no avail.  Any ideas?
> 
> Thanks!!
> 
> --
> LTJG Kevin Slover, NOAA
> GIS Specialist/Oceanographer
> NOAA/National Hurricane Center/Storm Surge Unit
> 11691 SW 17th Street
> Miami FL  33165
> 
> W (305) 229-4456
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at l...
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list