I'm currently using PHP to dynamically create a javascript which will be echoed
on the page.
Sample Code:
$JS .= '<script>';
if($condition == true) {
$JS .= 'alert("Yo its true omg!");
}
$JS .= "</script>";
As you can see, this will eventually get messy with ll the '
quotes and escaping of single quotes within the double quotes...
Is there a better way to do this?
<div id="marker_1">
,<div id="marker_2">
etc... – Nyxynyxx Jul 5 '11 at 15:13