Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to display rows by using javascript in Opera

 
manohar penumarthi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
var browser=navigator.appName;
if(browser=="Opera")
{

function generateRownew(componentcode,class) {

var table = document.getElementByClassName(class);
if(componentcode.length > 1) {

var row = table.insertRow(table.rows.length);

if(table.rows.length%2 == 0)
row.className = "odd";
else
row.className = "even";

for(var i = 0; i < componentcode.length; i++) {

var cell = row.insertCell(i);
cell.valign = "middle" ;
cell.innerHTML = componentcode[i];


}
}

}
}

check it and please send solution for this . and i don't know abt getElementByClassName
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I do not know of the getElementByClassName, I do know about getElementsByClassName.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic