On Jun 30, 6:42 am, "[email protected]" <[email protected]> wrote: > On Jun 30, 6:14 am, Ashley <[email protected]> wrote: > > > I have a page athttp://demo.zincdev.co.uk/andtry as I might I > > cannot get the GDirections api to work as expected. > > > If you enter a couple of locations and click the 'Get Directions' > > button, Firebig reports : > > _GMAP.directions.getStatus() is undefined (i.e. in the error trap > > event) > > This is a problem: > GEvent.addListener(_GMAP.directions, "error", seeError()); > > the seeError function is executed and its return value is used as a > function pointer to be called when the error event occurs.
The problem being, when that line is executed, the _GMAP.directions member hasn't yet returned its results (load hasn't even been called on it, so the request hasn't even been sent to the server). -- Larry > > should be seeError, not seeError() > > -- Larry > > > > > Click it again and Google API chucks an alert: > > Failed to obtain directions, Server error: The geocoding request could > > not be successfully processed. > > > If someone can take a look I'd really appreciate it. This is my first > > google maps job and all is going fine except for this! > > > I tried this in Firefox and IE7. No joy. Same errors. > > > Regards > > Ashley --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
