Thank you for your help.
I've tried to handle the line breaks so instead of line breaks I
wrote \n and before sending the string to openInfoWindowHtml I do:
$content = str_replace("\n" , "<br \/>", $content);
but for some reason the str_replace doesn't do the replace and the
info window shows with out line breaks.
How to I suppose to handle the content I get from the db with line
breaks?
Thank you.
On May 26, 7:00 pm, Andrew Leach <[email protected]> wrote:
> On May 26, 4:50 pm, shani1351 <[email protected]> wrote:
>
> > No, there are no errors on the page.
>
> I get an "Unterminated string" error because of this (at line 261 in
> the "live site" page):
>
> marker1.openInfoWindowHtml('<h7>Hemingway Bar<\/h7> <div>The right
> combination of a
> neighborhood bar and a
> pick-up bar,2 floors, one is the major bar and
> the other is a smoking lounge.
> Reines st. 2, Dizengoff Square.
> 054-8016580
> <br><\/div>');
>
> There is a line break after "combination of a" which isn't allowed.
> Strings in Javascript can't contain line-breaks, and the opening and
> closing quotes must be on the same line.
--
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.