innerHTML won't work with Firefox

E

Eo

Hey I hav JS code that expend TD if beeing click on
from some reson it dose not work in firefox(won't open) just under IE
it works
any Idea?

function MoreInfo(id)
{
AId=id;
FullPage ="<? echo $fullpage; ?>id=" + AId;
coId = document.getElementById('Coinfo'+AId);


if(document.all("tdStatus" + AId).innerHTML=="ñâåø") {

document.all("tdStatus" + AId).innerHTML="ôúç";

}
else {
document.all("tdStatus" + AId).innerHTML="ñâåø";
} coId.bgColor="#009900";

if(document.all("Adinfo" + AId).innerHTML=="") {
document.all("Adinfo" + AId).innerHTML="<iframe src='" +
FullPage + "' width='100%' height='120' frameborder='1'
scrolling='auto' name='ttt'></iframe>";
}
else {
document.all("Adinfo" + AId).innerHTML="";
coId.bgColor="#ffffff";
}
}
 
J

Jang

function MoreInfo(id)
{
AId=id;
FullPage ="<? echo $fullpage; ?>id=" + AId;
coId = document.getElementById('Coinfo'+AId);

if(document.all("tdStatus" + AId).innerHTML=="ñâåø") {

Don't use document.all. It's not standard (only with IE). Use
document.getElementById();
 
J

Jang

Can you show me example please?


Just substitute document.all with document.getElementById everywhere
in your code. You can probably even do a search and replace in your
editor.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top