I smell a plugin!
On Jun 4, 4:09 pm, Ty Wangsness <[email protected]> wrote:
> As others have said this is not really a google maps issue, but I've
> had the same issue with EE, linebreaks, and javascript in the past.
> If output-processed php is available to you on that page...
>
> <?php print str_replace("\n", " ", "{fare_outlet_address}"); ?>
>
> Otherwise you'll have to perform the replacement with a custom query
> and use the mysql REPLACE() function.
>
> http://dev.mysql.com/doc/refman/5.1/en/string-functions.html#function...
>
> REPLACE(field_id_somenumber, char(10), " ") is what I've used in the
> past within my queries.
>
> -Ty
>
> On Jun 4, 2009, at 3:50 PM, Pavel Janíček wrote:
>
>
>
> > Hi, or try to have "invalid" code
> > replace <br /> to simple <br> - its not XHTML valid, but works :)
>
> > On Jun 4, 9:26 pm, Larry <[email protected]> wrote:
> >> On Jun 4, 12:06 pm, Bluehenry <[email protected]> wrote:
>
> >>> There you go.
>
> >>>http://www.valleymetro.org/fares_and_passes/fare_outlets/
>
> >> That page gives me an "unterminated string constant" erro on line 57
> >> in IE6...
>
> >> This is not allowed in javascript:
> >> var map_text = "<h2>Tempe Transit Store</h2><p>Tempe
> >> Transportation Center<br />
> >> 200 E. Fifth St.<br />
> >> (northwest corner of Fifth Street and Forest Avenue)</p>";
>
> >> remove the carriage returns after the <br />'s
> >> var map_text = "<h2>Tempe Transit Store</h2><p>Tempe
> >> Transportation Center<br />200 E. Fifth St.<br />(northwest corner of
> >> Fifth Street and Forest Avenue)</p>";
>
> >> should work (but the groups interface will mangle it, I'm sure).
>
> >> -- Larry
>
> >>> Thanks.
>
> >>> On Jun 4, 2:46 pm, Rossko <[email protected]> wrote:
>
> >>>>> The link to the page
> >>>>> ishttp://www.valleymetro.org/fares_and_passes/fare_outlets/
>
> >>>> What we really need is a link to a page that demonstrates the
> >>>> problem;
> >>>> that one works in IE6 but the infowindow content is only
> >>>> var map_text = "<h2>Desert Sky Mall</h2>";
> >>>> format.- Hide quoted text -
>
> >>> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---