PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → webdev 21 clientside var
webdev 21 clientside var
Iniciado por guest, 30,abr. 2016 13:14 - 4 respuestas
Publicado el 30,abril 2016 - 13:14
Hi Is there a way to get the valu odf a client side variabele to the serverside?

I want to use the long and lat that I get from the map into my db

thanks

allard
Publicado el 30,abril 2016 - 16:18
Hi Allard,

You can use an invisible link or button and two invisible edit controls.
In the server code of the button or link you send the value of both edit controls to the server.
Now you only need some browser process that can put the long and lat into the edit controls and do a hexecuteprocess(MyButton,trtClick).

Regards,
Piet
Publicado el 30,abril 2016 - 17:12
Hi Piet,

Thanks

Ill try that!!

regards
Allard
Publicado el 30,abril 2016 - 22:17
Hi,

You can use Ajax to execute a procedure on the server and send the lat and Long as parameters.

http://help.windev.com/en-US/…

Or the asynchroon version of the function.

Danny
Publicado el 01,mayo 2016 - 01:25
Hi,

Thanks . Indeed that would be more secure I guess?

I will take a look at that . I have it working now the way Piet suggested but for security reasons I will have to look at your solution Danny , Thanks for the tip


regards
Allard