Hi,

I have been trying to implement a couple of buttons on my site to open
the previous and next infowindows, based on this forum thread:
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/7b055119319cb510/fc00265fed570e86?lnk=gst&q=Can+an+infowindow+be+opened+from+another+infowindow%3F#fc00265fed570e86

I have added the following code (from my index page - www.globexposure.net):
'<a href="javascript:myclick(' + prev + ')"><img src="images/
prev.jpg"></a>' + '<a href="javascript:myclick(' + next + ')"><img
src="images/next.jpg"></a>'

...to create the buttons, however, when i try to use them i get the
following error:
Error: gmarkers[i] is undefined
Source File: http://www.globexposure.net/
Line: 123

I think this means that i need to set the value of 'prev' and 'next'
to gmarkers[i] - not sure how this is done, please can you show me?
---> perhaps something like '<a href="javascript:myclick(' + gmarkers
[i]==prev + ')"> ?

Many thanks
--~--~---------~--~----~------------~-------~--~----~
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