On Nov 18, 9:51 am, Jannerel Roche <[email protected]> wrote:
> hello!
>
> stupid of me! please check again directly using this link instead
> http://desertmania.kabayanxpats.com/pages/
When you create your first infoWindow, you use elements tab1 and tab2.
That means those *elements* are used in the infoWindow -- they are
moved within the DOM from the page into the infoWindow. Watch: they
disappear from the visible page. When the infoWindow is closed by
another click on the map, those elements are destroyed, so they are
not available for the next infoWindow to use.
If you coded
infowin[0] = new GInfoWindowTab('Details', document.getElementById
('tab1').innerHTML);
that statement creates a new node in the DOM containing the HTML
within tab1, and uses that new node for the infoWindowTab, instead of
the tab1 element itself. Thus the element "tab1" is not moved into the
infoWindow and remains available.
Andrew
--
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=.