Javascript error: unterminated string literal
-
Hi, I’m trying out your plugin and getting the following error:
SyntaxError: unterminated string literal "info":" --------^
The code rendered on the page is:
<p><script type="text/javascript"> var map_points_canvas_Gv326L = new Array(); map_points_canvas_Gv326L[0] = {"address":"New York, NY, USA", "lat":"40.7143528", "lng":"-74.0059731", "info":" <div style='margin:0; padding:0px; height:125px; width:auto; overflow:hidden; font-size:11px; clear:both; line-height:13px;'> <div style='float:left; width:200px'><a class='title' href='' style='clear:both; display:block; font-size:12px; line-height: 18px; font-weight:bold;'></a> <div><strong style='font-size:9px'>New York, NY, USA</strong></div> <div style='font-size:10px'></div> <p><a href='' style='font-size:11px; float:left; display:block'>more »</a><img src='https://mybreastimplantssydney.com.au/wp-content/plugins/google-map-shortcode/images/open.jpg' style='float: right; margin-right:5px'/> <a href='https://maps.google.com/?q=New+York%2C+NY%2C+USA' target='_blank' style='font-size:11px; float: right; display:block;'>Open Map</a></div> <div style='float:left'><a title='' href=''></a></div> </div> <p>", "cat":"", "icon":"https://mybreastimplantssydney.com.au/wp-content/plugins/google-map-shortcode/images/icons/marker.png"}; var options_canvas_Gv326L = { 'mapID':'map_canvas_Gv326L', 'zoom':10, 'markers':map_points_canvas_Gv326L, 'mapContainer':'canvas_Gv326L', 'focusType':'open', 'type':'ROADMAP', 'animateMarkers':1, 'interval':'5000' }; var map_canvas_Gv326L = new gmshc.Map(options_canvas_Gv326L); var trigger_canvas_Gv326L = function(){map_canvas_Gv326L.init()}; gmshc.addLoadEvent(trigger_canvas_Gv326L); </script></p>
I’m running WP 3.6 multi-site with a custom Genesis theme.
The shortcode is placed on an page with no other content:
[google-map-sc address="New York"]
Tested in latest Firefox and Chrome.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Javascript error: unterminated string literal’ is closed to new replies.