On Nov 14, 9:41 am, Taunus <[email protected]> wrote: > Hi, > > I'm really desperately trying to do a route calculation with Google > Maps and I'm absolutely stuck... My problem: > > In the HEAD, the following script is defined: > > function givedirections(strasse, ort) { > directionsPanel = document.getElementById("my_textual_div"); > directions = new GDirections(map, directionsPanel); > directions.load("from: " + street + ", " + place + " to: In den > Eichen, Liederbach"); > } > > This works fine as long as I call it with a button like that from the > BODY: > > <button onClick="givedirections('Bahnstrasse', 'Frankfurt');">Show !</ > button><br> > > But as I want to have users enter their start point with a form, > NOTHING happens: > > <form action="#" onsubmit="givedirections(this.Strasse.value, > this.Ort.value);"> > Street: <input name="Strasse" type="text"> > Town: <input name="Ort" type="text"> > <input type="submit" name="Submit" value="Show"> > </form> > > The same function is called, the same arguments are given to it, but > still - it doesn't work. Why??? >
I won't/can't debug a code snippet. This works: http://www.geocodezip.com/example_geo2.asp?addr1=Bahnstrasse,%20Frankfurt&addr2=In%20den%20Eichen,%20Liederbach&geocode=1&geocode=2 (although it finds 10 possibilities for "Bahnstrasse, Frankfurt") -- Larry -- 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=.
