I am creating a table row and setting it's html to the html of another table row on the fly.. works great in Chrome and Firefox but I get an error in IE (go figure). Here's the code, I've set the line that is giving me the error in bold...
var tbl = document.getElementById("all_messages");
var lastRow = tbl.rows.length;
var row = tbl.insertRow(lastRow);
row.style.display = "none";
row.style.cursor = "pointer";
row.style.backgroundImage = "url(assets/dark_grey_bg.png)";
row.style.backgroundRepeat = "repeat-x";
row.innerHTML = tbl.rows[lastRow - 2].innerHTML;
row.onclick = function(){showOldMessage(this);};
var cell = row.cells[0];
cell.innerHTML = '<table width="100%" cellpadding="0" cellspacing="0"><tr><td width="*" style="padding-left:5px;"><a href="'+res[1]+'" class="mailbox_read" style="text-decoration:none;">You</a> just testing...</td><td align="right" style="padding-right:5px;"><font color="#444444">'+res[1]+'</font></td></tr></table>';
var tbl = document.getElementById("all_messages");
var lastRow = tbl.rows.length;
var row = tbl.insertRow(lastRow);
row.style.display = "none";
row.style.cursor = "pointer";
row.style.backgroundImage = "url(assets/dark_grey_bg.png)";
row.style.backgroundRepeat = "repeat-x";
row.innerHTML = tbl.rows[lastRow - 2].innerHTML;
row.onclick = function(){showOldMessage(this);};
var cell = row.cells[0];
cell.innerHTML = '<table width="100%" cellpadding="0" cellspacing="0"><tr><td width="*" style="padding-left:5px;"><a href="'+res[1]+'" class="mailbox_read" style="text-decoration:none;">You</a> just testing...</td><td align="right" style="padding-right:5px;"><font color="#444444">'+res[1]+'</font></td></tr></table>';