Wasn't it Tuu T. who wrote: >I made a similar function but still doesn't work, so the last one, the >function save is called with a "Submit" button, not on map, but seems >that the variable marker cannot be found,
Javascript called from a "Submit" button executes in global context, so any variables and functions it uses must be global. If your "marker" variable is being held as a local variable by Function Closure, then that won't work. Since your "Submit" button is off the map, I presume you've got some mechanism for deciding which of your markers is supposed to be updated when you click the button. You need to store that information into a global variable. -- Mike Williams http://econym.org.uk/gmap --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
