Sorry if I posted precedent message. Thanks Andrew, I have forgotten "return false;" in onsubmit. Now it works fine.
Francesco On 29 Ott, 14:45, "warden [Andrew Leach - Maps API Guru]" <[EMAIL PROTECTED]> wrote: > On Oct 29, 1:38 pm, "Barry Hunter" <[EMAIL PROTECTED]> > wrote: > > > > > (you should ignore the word 'suggested' in the page title, its really > > 'required' reading) > > Definitely. However, reading about HTML and Javascript is required > too. This isn't a question about the API. > > <form action="#" onsubmit="vai(this.saddr.value, this.daddr.value)" > > (where's the > on that line? That's one reason for requesting a link) > > Specifying onsubmit AND action will result in both being done. > onsubmit is done first, and then the action="#" reloads the page. You > should look at the value returned by your onsubmit handler: it needs > to be False to stop the action being done. > > 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 -~----------~----~----~----~------~----~------~--~---
