Hi, You can use firebug (a firefox extension) to have a good understanding of the javascript errors (that are non directly related to the Maps API).
For example, in your test2, you've got a problem with the variable named result (it should be named response because of the line 23). After that, you'll have to write the "place()" function (look at the example in test1). I think you won't be able to do that if you don't fully understand the econym tutorial. Spend some time on it and try to understand every line of the code and the global logic and it should be a lot easier for you to make your script. Don't copy/paste code -> rewrite it by yourself, so you're sure you've understood it correctly. Mathieu On Jun 18, 1:20 pm, Meek <[email protected]> wrote: > Hi Mathieu. > > Thanks for your answer. Itried but I can't make it work. I think I > understand how it's supposed to be - pseudo-like - but my attempts > won't work. My test page is here:http://komfrisk.dk/test/test2.html > > Can you help me a bit more? > > Thanks, > > Meek. > --- > > On 17 Jun., 14:21, Mathieu Alengrin <[email protected]> > wrote: > > > > > Instead of using response.Placemark[0] (lines 25 and 33 in your code) > > you need to loop through the results (the response.Placemark[] tab) > > and let your user choose. > > Use the tutorial (on econym or komfrisk) to see how to display the > > different locations (lines 58 to 68 inhttp://komfrisk.dk/test/test1.html). > > > Mathieu > > > On Jun 17, 2:04 pm, Meek <[email protected]> wrote: > > > > Hi, > > > > Thanks, but that's the script I'm already using > > > here:http://komfrisk.dk/test/test1.html > > > - I would like it to work with this script as > > > well:http://briancray.com/wp-content/uploads/2009/04/distance.html > > > > Any ideas how to do that? > > > > Thanks. > > > > On 17 Jun., 14:00, Mathieu Alengrin <[email protected]> > > > wrote: > > > > > Hi, > > > > Try this:http://econym.org.uk/gmap/didyoumean.htm > > > > > Mathieu > > > > > On Jun 17, 1:50 pm, Meek <[email protected]> wrote: > > > > > > Hi. > > > > > > I'm using this script to calculate the distabce between two > > > > > locations.http://briancray.com/wp-content/uploads/2009/04/distance.htmlItseems > > > > > to work fine. However, I would like to add a "Did you mean" function > > > > > to the script - just like on this > > > > > map:http://komfrisk.dk/test/test1.html > > > > > (Hit "Go!" and see what I mean.) > > > > > > Can anyone help me implement this functionality to the first script? > > > > > > Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
