Here's the solution I found, thanks to this post:
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/73a74bc1ef98f051/fe3d66f0b91a3786?lnk=gst&q=form+onsubmit#fe3d66f0b91a3786

The correct syntax for loading the action within the same page is:

<form onsubmit="functionName();return false" action="#">

Notice the ";return false". Without "return false" the form calls your
function, and then performs the "action" of the <form>. However, if
you don't specify an "action" for the <form> because you want it to
load on the same page, then the default is to reload the page.



--~--~---------~--~----~------------~-------~--~----~
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