[Mapserver-users] Re: Zoom In to a defined area
Jeff L.
nf10 at hotmail.com
Thu Sep 4 03:40:55 PDT 2003
Thanks Dave and Pall for your help. It's working.
Best Regards,
Jeff
Another possibility is
newExtent =
msForm.ViewArea.options[msForm.ViewArea.selectedIndex].value.replace(/
/g, "+");
That will replace the blanks with +'s.
Best Regadrs
Pall Due Larsen
Carl Bro GIS&IT
-----Original Message-----
From: "Lowther, David W" <dlowther at ou.edu>
To: mapserver-users at lists.gis.umn.edu
Date: Wed, 3 Sep 2003 07:56:46 -0500
Subject: RE: [Mapserver-users] Zoom In to a defined area
>Jeff,
>
>First - yes, it is correct to set IMGEXT.
>
>Your problem is with javascript - that was my biggest hurdle also.
>
>What you want to do is:
>A - get the value of the selected element of the combo box
>B - assign it to imgext in your mapserv form
>C - submit the form.
>
>Only javascript could make this difficult...
>
>Try this:
>
>function AreaSelected(){
> msForm = document.myform;
> //a
> newExtent =
>msForm.ViewArea.options[msForm.ViewArea.selectedIndex].value;
> //b
> msForm.imgext.value = newExtent;
> //c
> msForm.submit();
>}
>
>Dave
>
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
More information about the MapServer-users
mailing list