> The markers are working fine when clickt, the data is loaded from a
> mysql database.

In your marker click listeners, you have got function closure of the
value 'dorp' used to select the AJAX source.
Each of the listeners will hold a different value for 'dorp'.
http://econym.org.uk/gmap/closure.htm

> When i click a town in the sidebar, all i get is de data belonging to
> the last town in the sidebar row (Kattendijke).

In your shared click function myclick(i) although a different 'i' gets
passed in from each sidebar entry, it is using the value that the
global 'dorp' happens to be at the time of the click - which is always
the last one after you have finished building the sidebar.
One way to fix that would be to use 'i' to look up the corresponding
value of 'dorp', as you've already got that available in the global
htmls[i]

cheers, Ross K

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