Having an issue creating a custom window for a google map application. The actual problem is with putting text inside the window. Everything works until I try to put some html in there and then it all falls apart. Here's the basic code that actually works....
That pops up the infowindow with Foo inside of it. However, when I try to expand that and add a little formatting....
the entire script breaks. I'm guessing this is an escaping issue but I'm a bit clueless with exactly what or where as I don't usually work in JS. Any thoughts?
Code:
var point = new GLatLng(27.895526,-82.736754);
var html = 'Foo';
That pops up the infowindow with Foo inside of it. However, when I try to expand that and add a little formatting....
Code:
var point = new GLatLng(27.817875,-82.654844);
var html =' <table class="arial13black borderb" width="200">
<tr><td width="200">Price</td></tr>
<tr><td width="200">Address</td></tr>
<tr><td width="200">image</td></tr>
</tr>
</table>';
the entire script breaks. I'm guessing this is an escaping issue but I'm a bit clueless with exactly what or where as I don't usually work in JS. Any thoughts?