[mapserver-users] passing arrays betn. php and javascript
Stephen Woodbridge
woodbri at swoodbridge.com
Fri Apr 26 10:13:41 PDT 2002
Pushkar,
Your php writes the page that is sent to the browser (or can write it)
so just have your php output code to load a javascript array with
values. let the user play with the values and when you are ready to
refresh the display using the new values have your javascript assign the
values to hidden form fields and post the form back to php with the
submit button. You can use an onSubmit() javascript function to trap the
users refresh click and then update the form fields
-Steve
Pushkar Pradhan wrote:
>
> Hi,
> In my maps I want to do the foll.:
> The user should be able to select the layers to display and change the
> order of the drawing.
> I think the fastest way is to do this using javascript, since it runs on
> client side it will be fast.
> So is it possible to pass an array containing the names of the layers from
> php to javascript, after changing the element positions in JS have it back
> in php? Some code snippets would also be appreciated. Thanks,
>
> -Pushkar S. Pradhan
More information about the MapServer-users
mailing list