> So, as you recommended, I added '<form onsubmit="searchLocations()">',
> 'searchLocations()' being the same function that my submit button is
> set to. The result is still a refreshed, blank page when I hit return.
> Adding 'action=""' also renders the same result.

Yes.  The browser is doing exactly what you are telling it to.  It
executes your searchLocations() functions , AND THEN returns to the
from, looks for action= and carries that out.  If action= is missing
or null, it causes a page refresh.

This is all detailed in the links I gave, the usual trick to stop it
happening is force the onsubmit= javascript expression to return
false, this stops the browser carrying on with trying to submit the
form.

This is not a maps issue, it is a general javascript/DHTML issue and
explained much better than I can do in a hundred tutorials.

cheers, Ross K

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