I tried to add multiple markers and infowindow to a google map using javascript. Below is the code:
The geocoder is asynchronous, you need to add the infowindow inside the geocoder call back. Where you have it currently it runs before any of the markers are defined. I would think you would get a javascript error.