On Aug 20, 7:08 am, Howie <[email protected]> wrote: > Hi
> I have updated a Google Maps application which used to use > InfoWindowHtml, to one using InfoWindowTabsHtml - using sidebars. > When I click the marker icon the tabbed infowindow displays correctly. > However, when I click the sidebar link, I get a untabbed infowindow > being displayed. > It looks like my problem is occuring when I add a line (incorrectly?) > to the sidebar html. > Any advice on how to fix this would be appreciated. > A link to the test page is here > http://www.wiltshire.gov.uk/maps/fotomaptest4.php?community_in=donhead sidebar_html += '<a href="javascript:myclick(' + i + ')">' + html2 + '</a><br>'; your myclick function does this: // This function picks up the click and opens the corresponding info window function myclick(i) { gmarkers[i].openInfoWindowTabsHtml(htmls[i]); window.location='#top'; } the htmls array does not contain arrays of tabs, it contains the untabbed infoWindow you get. I would suggest making your myclick function this: (untested) function myclick(i) { GEvent.trigger(gmarkers[i],"click); } so it uses the "working" click handler. -- larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
