| | |
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 |
301 apache api array autosuggest beginner binary broken cakephp checkbox class cms code compression cron curl data database date display dropdownlist dynamic echo email eregi error execution file files folder form forms function functions google href htaccess html httppost if...loop image include insert ip javascript joomla jquery key library limit link links login mail md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf pdfdownload php phpvotingscript problem query radio random recursion remote screen script search searchbox server session sessions sms sorting source space sql syntax system table tutorial update upload url validator variable video volume votedown web website youtube zend





