0

hi
i m wroking in asp the below code work in internet explorere but does't work in firefox pls help me


function DisplayMe(e)
{
//document.getElementById("CompName").value ==
//alert(e.id);
var elTableRow = document.getElementById(e.id);
var elTableCells = elTableRow.getElementsByTagName("td");

if (document.all) {
document.getElementById("CompName").value=elTableCells[1].innerText;
//var cell = elTableRow.getElementsByTagName("td")[1];
//var content = elTableCells[1].innerText;
//document.getElementById("CompName").value=elTableCells[1]

document.getElementById("City").value=elTableCells[2].innerText;
document.getElementById("Country").value=elTableCells[3].innerText;
document.getElementById("Email").value=elTableCells[4].innerText;
document.getElementById("Phone").value=elTableCells[5].innerText;
document.getElementById("CompanyURL").value=elTableCells[6].innerText;
document.getElementById("compDesc").value=elTableCells[7].innerText;
document.getElementById("ID").value=elTableCells[1].id;
//alert(elTableCells[2].innerText);

}
else

{
document.getElementById("CompName").textContent=elTableCells[1].textContent;
document.getElementById("City").value=elTableCells[2].textContent;
document.getElementById("Country").value=elTableCells[3].textContent;
document.getElementById("Email").value=elTableCells[4].textContent;
document.getElementById("Phone").value=elTableCells[5].textContent;
document.getElementById("CompanyURL").value=elTableCells[6].textContent;
document.getElementById("compDesc").value=elTableCells[7].textContent;
document.getElementById("ID").value=elTableCells[1].id;

alert(document.getElementById(e.id).textContent);
}
document.getElementById("CompName").textContent=elTableCells[1].textContent;

}
//--></script><!--webbot BOT="GeneratedScript" endspan -->

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by CollinHoward
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.