Or just use one variable but put the create new infowindow in a function and that will accomplish the same thing but without having to name so many variables
* Sent from my iPhone * Scott Sheck ([email protected]) On Nov 22, 2009, at 6:13 PM, Ron Pineo <[email protected]> wrote: > oh heck, I pored over the code for hours trying lots of perms and > combs but not that one, made the change and now it works, > > Thanks to all for the help but Brian especially. > > Ron > > > > On Sun, Nov 22, 2009 at 2:10 PM, Brian Casey <[email protected]> wrote: > You're re-using the same infowindow variable for each marker. To > match the rest of your code, use 'infowindow0', 'infowindow1', etc. > > > On Sun, Nov 22, 2009 at 6:45 AM, Joe Fearnley > <[email protected]> wrote: > Not sure if this will work or that optimization-wise is would be > bad, but I would suggest adding a number to each info window like > you do the content and marker. In this case you would know it is a > new variable. > > Joe > > > On Sat, Nov 21, 2009 at 9:46 AM, Ron Pineo <[email protected]> wrote: > Hi All: > > I pretty much have my first google map working fine. Only problem is > I want to have an infowindow appear when the marker is clicked on. I > have it doing this but it displays the same content for each > infowindow despite me passing it different content for each > infowindow. > > Read everything I could find but no luck so if someone could shed a > little light on what I am doing wrong it would be greatly appreciated. > > Here is the link: > > http://www.corrosionfree.com/dealerresults.asp?dealercity=Brampton&Submit=Submit > > > Thanks in advance, > > Ron Pineo > > -- > > You received this message because you are subscribed to the Google > Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl= > . > > > > -- > > You received this message because you are subscribed to the Google > Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl= > . > > > > -- > Brian Casey > [email protected] > > -- > > You received this message because you are subscribed to the Google > Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl= > . > > -- > > You received this message because you are subscribed to the Google > Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl= > . -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=.
