0

Hello,

This is just an extraction from the code.

The code below works really well in Mozilla Firefox, but does not work with the <a> and <font> tags in any other browsers. When I remove <a> and <font> tags, it works in other browsers...

If anyone can spot the problem, I will really appreciate your help.

Sincerely

$vas= $row['Name'];


echo "document.getElementById(\"Layer1\").innerHTML = document.getElementById(\"Layer1\").innerHTML + <font size='3'> <a href = \"#\" onclick=\"ShowPicture('$varr')\" >". $vas ."</a></font>; ";
1
Contributor
1
Reply
2
Views
9 Years
Discussion Span
Last Post by Mylena
0

Thanks, i just resolved it myself. I missed the single inverted commas...

echo "document.getElementById('Layer1').innerHTML = document.getElementById(\"Layer1\").innerHTML + '<font size=\'3\'><a href=\"#\"  onclick=\"ShowPicture(\'$varr\')\" >".$vas ."</a></font><br />'; ";
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.