| | |
Code works with Mozilla, but not with other browsers...
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Jul 2007
Posts: 30
Reputation:
Solved Threads: 1
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
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
PHP Syntax (Toggle Plain Text)
$vas= $row['Name']; echo "document.getElementById(\"Layer1\").innerHTML = document.getElementById(\"Layer1\").innerHTML + <font size='3'> <a href = \"#\" onclick=\"ShowPicture('$varr')\" >". $vas ."</a></font>; ";
•
•
Join Date: Jul 2007
Posts: 30
Reputation:
Solved Threads: 1
Thanks, i just resolved it myself. I missed the single inverted commas...
PHP Syntax (Toggle Plain Text)
echo "document.getElementById('Layer1').innerHTML = document.getElementById(\"Layer1\").innerHTML + '<font size=\'3\'><a href=\"#\" onclick=\"ShowPicture(\'$varr\')\" >".$vas ."</a></font><br />'; ";
![]() |
Similar Threads
- Expandable Javascript Text Block Problem (JavaScript / DHTML / AJAX)
- window.close() problems (JavaScript / DHTML / AJAX)
- Upgrade phpBB to vBulletin? (Growing an Online Community)
- Background image? Z-Index? (HTML and CSS)
- javascript works in IE but not working in firefox (JavaScript / DHTML / AJAX)
- javacript code not working in firefox but works fine in IE (HTML and CSS)
- Difference between Firefox and IE (JavaScript / DHTML / AJAX)
- Style properties are ignored by Mozilla browser... (ASP.NET)
- Please help me make this script work in Netscape (JavaScript / DHTML / AJAX)
Other Threads in the PHP Forum
- Previous Thread: Text Fader
- Next Thread: user/admin interaction
| Thread Tools | Search this Thread |
.htaccess alexa apache api array beginner beneath binary broadband broken cakephp checkbox class cms code convert cron curl database date display dynamic echo email emptydisplayvalue encode error fcc file files folder form forms function functions google howtowriteathesis href htaccess html image images include insert ip javascript joomla key keywords limit link login mail mail() memberships menu mlm multiple multipletables mysql mysql_real_escape_string network oop open passwords paypal pdf php provider query radio random redirect remote rss script search securephp server sessions smtp source space sql strip_tags syntax system table template tutorial update upload url user validator variable video voteup web youtube





