On Jan 26, 12:02 pm, "[email protected]" <[email protected]> wrote: > can anyone help? > > I have it so the end location is hard coded, but the user still needs > to click the button to action it. > Can it be done so that the user can just enter their address and click > the button once, and the directions are shown.
Yes. Have an address entered by the user, call it -- say -- startAddr. In your form handler, use var dir="from: "+startAddr+" to: Buckingham Palace SW1" or whatever your end address is. I've had a look at your page, but because the map doesn't actually work [get a key for it!] it's difficult to see what's supposed to be going on. Andrew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
