On Feb 6, 12:09 am, kenja <[email protected]> wrote:
>
> Ideally, I'd like to be able to create listeners on the fly based on
> the XML file as I do with the gDirections requests, but I couldn't
> figure out a way to have the listeners created by javascript without
> hard coding it.
>
> Any idea how to do that?

Well you could create them when you create the gdir[j] object itself.
Or you could test for their existence with
  if (gdir[0]) { //add listener }

Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to