[Mapserver-users] Using itasci rubber band in php

Norbert Thieme norbert.thieme@ilmenau.baw.de
Tue, 04 May 2004 12:38:51 +0200


publiek@home.nl schrieb:
> I am trying to rewrite the itasca example (javascript with dhtml rubber band box) to php.
> 
> What i want is to let the dbox javascript thing communicate with my php functions.
> Am i doing something that is possible? Or should i use something else for the rubber band selection?
> 
> Any ideas are welcome.
> 
> Thanks, 
> 
> Marcel
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users@lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
> 

Yes,

you can do that. Just make two inputs with a name in your form in the 
php file (e.g. <input .... name=javasX>).

I don't know what your does exactly but you can asign the Values from 
your coordinates to the html/php inputs (e.g. 
document.yourform.javasX.value = someXcoordinate). Notice that you 
should know what coordinates you get from the script (pixel, position of 
start point).

If the from gets submitted you can use this in php script. If your form 
uses POST then it could look like:

     if (isset($HTTP_POST_VARS["javasX"]))
     {
       $click_x = $HTTP_POST_VARS["javasX"];
     }

Now you can use this coordinates in php and do what you want to do.

Regards,
Norbert

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users