SyntaxHighlighter

Friday, December 03, 2010

missing ) before statement

Javascript original code causing missing ) before error. after some modification using escaped character. Able to fix this issue. Following are the code


 var stringContent = m_infowindow;
infoWindow.setContent("<div id=\"infowin-overlay\""
+"<P align=\"right\"><small>[ <a href=\"#\" onclick=\"clearOverlays(\'" +m_title+ " \');\">Remove</a> ]</small></P>"
+"<br />"
+stringContent+"</div>");

No comments: