Code works with Mozilla, but not with other browsers...

Thread Solved

Join Date: Jul 2007
Posts: 30
Reputation: Mylena is an unknown quantity at this point 
Solved Threads: 1
Mylena Mylena is offline Offline
Light Poster

Code works with Mozilla, but not with other browsers...

 
0
  #1
Oct 6th, 2008
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


  1.  
  2. $vas= $row['Name'];
  3.  
  4.  
  5. echo "document.getElementById(\"Layer1\").innerHTML = document.getElementById(\"Layer1\").innerHTML + <font size='3'> <a href = \"#\" onclick=\"ShowPicture('$varr')\" >". $vas ."</a></font>; ";
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 30
Reputation: Mylena is an unknown quantity at this point 
Solved Threads: 1
Mylena Mylena is offline Offline
Light Poster

Re: Code works with Mozilla, but not with other browsers...

 
0
  #2
Oct 6th, 2008
Thanks, i just resolved it myself. I missed the single inverted commas...

  1.  
  2. echo "document.getElementById('Layer1').innerHTML = document.getElementById(\"Layer1\").innerHTML + '<font size=\'3\'><a href=\"#\" onclick=\"ShowPicture(\'$varr\')\" >".$vas ."</a></font><br />'; ";
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC