On Dec 2, 6:25 am, robertofilo <[EMAIL PROTECTED]> wrote: > Hello all: > > I have been trying to create a javascript code that uses a XML file > (input) to load multiple pairs of addresses (in Latitude, longitude) > and for each of them calculate the driving distance using Google Map > API Gdirections. Then the idea is to either display the results in a > single page using alerts (html) or generating another XML file. (For > this example I am trying to use the first method, for simplicity) > > I do not know yet if the code will work entirely, but I came up with a > problem that do not help me continue working with it. > > I am using IE 6.0 and when the page opens an "Object expected" error > is reported in line 33 (when calling GDownloadUrl), and the rest of > the code is not executed. I already cleaned the temporary internet > files folder following the recommendation on (http://http:// > groups.google.com/group/Google-Maps-API/msg/b9ad15238b2c4b27) but the > error persists. > > The code is in the following link: > > http://robertofilo.007sites.com/Batch_directions/Batch_directions.html > > and the xml which is intended to be used is in : > > http://robertofilo.007sites.com/Batch_directions/pair_of_addresses.xml >
Javascript is case sensitive. GDownloadURL should be GDownloadUrl: http://code.google.com/apis/maps/documentation/reference.html#GDownloadUrl -- 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=en -~----------~----~----~----~------~----~------~--~---
