I know that an InfoWindow can be contain contents that is set by using an HTML string from the javascript or an HTML Node. What I'm interested in is the HTML Node for which I've seem to have made working for months, but at times things don't seem to be stable with having the HTML Node elements in the InfoWindow.
What I have been doing is that during initialization of the map, I also create one InfoWindow that will stay open indefinitely when a mouseclick occurs over a marker and another InfoWindow that opens and closes for each mouseover and mouseout event on a marker. During the initializing function, I also set the Content by passing in the document.getElementById of the respective DIV container ID's for these two InfoWindows. These DIV's are written out in HTML and are located either above or beneath the Google Map's DIV (I have both of the InfoWindows content nodes beneath but they can be located anywhere - correct me if I'm wrong on this). Anyway, I go through the normal process of creating the markers; and for each marker, I set the events of the mouseover, mouseout, and click for the marker to the associated InfoWindow. But as you can see, I do not setContent for any of these event calls. So, my question is, by setting the content of the InfoWindow once, is that OK or do I have to set the content every time that the marker event is called? I know that all the examples I see do that, but what if the content containers remain the same except that parts of the content information inside these containers only changes. So, I change only the content within the containers within these InfoWindows. This is done by using jQuery or plain old javascript to get at the inner node elements. But what I'm finding out sometimes through debugging the javascript in Chrome, FireFox (using FireBug), and in IE (using VS2010), the elements within the InfoWindow's content gets wiped out. I don't have the complex solution to show to let someone go through the page that I'm working on at the moment, but here are some pages to show how I actually create the InfoWindow. http://www.mentoreng.com/testing/maps/public/map2.html I'll try and post a link with a more complex Javascript code to show that the DOM node within the InfoWindow getting wiped out. This happens quite frequently in Chrome and Safari. -- 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=en.
