Hi Sivan.

Try using the <![CDATA[ <table>text</table ]]>

Not entirely sure if CDATA works the same within the html page but it is 
necessary within a KML file for HTML code and i have seen some code with 
CDATA used within the html file if the table info is still within the 
javascript tags.

Hope it works.

Dana

On Saturday, October 22, 2011 8:31:34 AM UTC-7, Sivan Margalit wrote:
>
> Hello,
>
> I'm trying to set FusionTablesMouseEvent.InfoWindowHtml with <table> 
> element. but the table not seen...
> To simplify the demonstration  - I test it with a constant code:
>
> var latlng = new google.maps.LatLng(32.58, 35.20);
> var myOptions = {
> zoom: 12,
> center: latlng,
> mapTypeId: google.maps.MapTypeId.ROADMAP
> };
> map = new google.maps.Map($("iframe#mapVisFrame")[0], myOptions);
> ...
> layer = new google.maps.FusionTablesLayer({
> query: { 
> select: 'geometry',
> from: fusionTableID
> },
> styles: CropStyles});
>
> ....
> google.maps.event.addListener(layer, 'click', 
> function(fusionTableMouseClick) {
> fusionTableMouseClick.infoWindowHtml=
> '<html xmlns:fo="http://www.w3.org/1999/XSL/Format";> <body>' + 
> '<br> this is my description <br> ' +
> '<table>' +
> '  <tr>' +
> '    <th align="left">Field Name</th> ' +
> '    <th align="left">Field Value</th>' +
> '  </tr>' + 
> '  <tr> ' +
> ' <td bgcolor="#D4e4f3">name</td> ' +
> ' <td>Bob</td>' +
> '  </tr>' +
> '  <tr> ' +
> ' <td bgcolor="#D4e4f3">age</td>' + 
> ' <td>38</td>' +
> '  </tr>' +
> '</table>' +
> '</body></html>';
> });
>
> I tested the same html code as independent html file - and it works fine. 
> But in the info window display only the text which is not within the 
> <table> tag.
> Do you know why ?
>
> Thanks
> sivan
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/NZa4l2JSGBYJ.
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.

Reply via email to