On Dec 5, 5:01 pm, mtweldon <[email protected]> wrote: > I'm working on getting map markers to work, they partially work, I can > click on the map and the box pops up, but when I hit save, it does > nothing, it appears to not get to the saveData() function and I'm not > sure why. > > http://map.fathomthat.org/test3.htm > > I have been using the exact code here, but changed variable name to > work with my maps:http://code.google.com/apis/maps/articles/ > phpsqlinfo.html
saveData() is defined *within* function initialize(), so it only exists while that function is running. Move function saveData into global scope (outside any other function) and it should work. As well as setting the onload function to initialize() with the <body> tag, you also set a function with window.onload = on_load_maps and on_load_maps doesn't exist. You can probably delete that line as it isn't doing anything useful. 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.
