| | |
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 advanced apache api array autosuggest basics beginner broken cakephp class cms code combobox compression cron curl data database date datepart display dropdownlist dynamic email eregi error execution file files folder form forms function functions google head href htaccess html httppost if...loop image include includingmysecondfileinthechain ip javascript job joomla jquery js key library limit link login md5 menu mlm multiple mysql mysql_real_escape_string oop password paypal pdf pdfdownload php phpvotingscript problem procedure query random screen script search searchbox server session sessions smarty source space sql stored system table traffic tutorial unicode upload url variable video volume votedown web website youtube zend





