On Mar 11, 7:19 am, Carmelo <[email protected]> wrote: > Sorry Andrew...I do that but it doesn't work.
You are missing this line: var map; before (outside of) your load() function. then you have other javascript errors, the first of which is html is undefined on line 113... -- Larry > Carmelo > > On 11 Mar, 13:02, Andrew Leach <[email protected]> wrote: > > > > > On Mar 11, 11:50 am, Carmelo <[email protected]> wrote: > > > > Probably I've done wrong things. > > > You haven't done what I suggested. You now have > > var gdir=new GDirections(map, document.getElementById > > ("directions")); > > outside your load function, so that it's executed as the page is > > loading. At that point, "map" doesn't exist. > > > *That* line should be just > > var gdir; > > and you put > > gdir=new GDirections(map, document.getElementById("directions")); > > inside your function load, along with the GEvent.addListener block. > > > Andrew- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
