URL in JS Array?

I would like to include a URL in my JS Array.



Is this the correct syntax?



echo “[”.$node[‘ObjectID’];

echo “,”;

echo $node[‘ParentID’];

echo “,”";

echo “<a href='source.php?tab=inv&objectid=”.$node[‘ObjectID’]."’>".$node[‘Name’]."";

echo “”]";





The syntax is correct, but beware that any occurenct of " or , inside $node[‘Name’] will break js array structure.