Looks like you have a scoping problem with the variable dorp.

dorp is initialized as a global variable, and values are assigned to
it in the loop through your marker data.

However, the myclick() function uses dorp, but when myclick() is
called from a click in the sidebar, the only value visible for dorp is
the last value assigned to it during the data loop.

Try changing this line in myclick()
                ajaxUrl: "/evenementen2.php?q="+dorp,
to
                ajaxUrl: "/evenementen2.php?q="+html[i],

This should work because in the createMarker function you have the
line
        htmls[i] = dorp;
and at that time dorp has the value you want.

Might be other problems, but that one could be the source of the
behavior you asked about.

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