Welcome Guest, Not a member yet? Register   Sign In
Passing variable from Javascript to php
#2

[eluser]bobbybaboon[/eluser]
Crazy, I did this same task today. In my case, I created a form with two hidden inputs, one for latitude and one for longitude. I attached an event to the DragEnd event of the marker that updates these inputs with the marker's new coordinates. Then when the user is done they hit submit and the new point is added to the database just like a normal form.

I know there is a tutorial somewhere on the internet with a sample application where you can place a point and it automatically updates the database. I'm not sure where it is, but if my form submit solution isn't practical for your situation I could try and dig it up for you.


Messages In This Thread
Passing variable from Javascript to php - by El Forum - 05-25-2009, 07:25 PM
Passing variable from Javascript to php - by El Forum - 05-25-2009, 09:16 PM
Passing variable from Javascript to php - by El Forum - 05-25-2009, 10:15 PM
Passing variable from Javascript to php - by El Forum - 05-26-2009, 03:34 AM
Passing variable from Javascript to php - by El Forum - 05-26-2009, 06:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB