Wasn't it Scooter who wrote:
>
>Thanks, That is very helpful and does allow me to use the form.
>However, if i put 'return false;' after calling the function, then the
>form will never perform the action to move on to the next page.
>
>I though that by putting the 'return false;' in the function itself
>when no address is found would be all that I need.
>
>However the function does not work unless i put the 'return false;' in
>the onsubmit.
>
>How do I get around this? Thanks in advance.

There's a little problem in that geocoding is asynchronous, but <form>
processing is synchronous. If you let the form do the page jump, then it
has to do it before the geocode reply comes back.

To get the functionality that you want, don't let the <form> do the page
jump. When your geocode gets a success reply, jump to the page using
Javascript
    window.location = url;

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


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