On Apr 22, 8:38 am, Anthony <[email protected]> wrote:
> I am trying to populate tabs in my map info window by loading <div>
> elements from an XML document. In Firefox, this works as expected, but
> in IE 6 a runtime error occurs when openInfoWindowTabs is called. The
> error is generated by some API code (i.e. I can't really tell what the
> problem is).

The problem is this line:
tabNodes[ i ].getElementsByTagName( "div" )[ 0 ] );
http://code.google.com/apis/maps/documentation/reference.html#GInfoWindowTab.GInfoWindowTab
the GInfoWindowTab constructor doesn't like the xml node you are
giving it for its second argument

Try using GXml.value to get the text out of that element:
GXml.value(tabNodes[ i ].getElementsByTagName( "div" )[ 0 ] ));


  -- Larry

>
> I can use HTML strings and openInfoWindowTabsHtml fine in both IE and
> Firefox, but I want to be able to consume the HTML nodes in the XML
> data source (which will be dynamically generated in my final
> solution).
>
> Here is a test page and the data file that reproduce the 
> behaviour:http://gts.ontario.googlepages.com/openInfoWindowTabs.htmlhttp://gts.ontario.googlepages.com/data.xml
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to