thanks for your reply sorry I replaced the 'it' to zero on this line GEvent.trigger(gmarkers [it], "click");
am not getting the 0the index ie GEvent.trigger(gmarkers[0], "click"); Thanks joban http://phpqa.blogspot.com On Feb 10, 3:05 pm, "warden [Andrew Leach - Maps API Guru]" <[email protected]> wrote: > On Feb 10, 9:57 am, jey jey <[email protected]> wrote: > > > > > when I give any values other than 0 it works for me. COuld you please > > help me to find out the reason, why this happening :( > > Isn't this a basic Javascript problem? You pass zero as "it"; "it" is > decremented and so you attempt to click gmarkers[-1]. I don't expect > you have a marker with that index. > > 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 -~----------~----~----~----~------~----~------~--~---
