Please take a look at this code
http://www.spidy.info/Photos/test.html

It is a highly simplified version of an editor I'm working on.
Basically, the first marker is automatically loaded.

If you click save on the form, it displays the contents of the input
line on the status bar, then closes the window.

Now you have two choices:
1. If you click on the same marker, it reopens the info window.
2. If you click anywhere else on the map, it creates a new marker and
opens its infowindow.

Now reload the page, you get back to the first marker.  Instead of
saving the form, click anywhere on the map.  It is supposed to
automatically save the form and create a new marker where you clicked.

Instead, I get a javascript error (line 45: f is null), as if the form
doesn't exist.

The really mysterious thing is that this error happens for the first
marker.  If you save the form using the button, and create a second
marker, then click anywhere else on the map (without necessarily using
the button to save) it usually behaves normally.

Please help advise on what's wrong or how to fix.  I suspect it has to
do with JS asynchronous execution, but I am relatively new to JS and
couldn't figure out.  Why does it work for any point except the first?

Thanks much for your assistance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to