Schik wrote:
Edit 2: I looked at the HTML that's being returned, and I don't see anything wrong with it. It appears to me that Opera just can't replace the innerHTML of a tbody? It's possible that's the standard and you're not supposed to be able to or something, I don't know.
Well,
here's the standard (and, if neccessary, the
DOM Core standard it's based on) and you won't find "
innerHTML"
anywhere in it, since that's a Micros~1 invention...
What you're supposed to do is inserting table rows created with
row=document.createElement("TR");
which in turn are to be stuffed with table cells which in turn have been stuffed with text nodes: (totally untested, no guarantees, void where prohibited, keep out of children, etc.)
var table=document.getElementById("table");
var tbody=table.tBodies[0];
for (int j=0; j < 10; j++)
{
var row=document.createElement("TR");
var cell;
for (int i=0; i < 10; i++)
{
cell=document.createElement("TD");
cell.appendChild(document.createTextNode("foo " + i));
row.insertCell(cell);
}
tbody.insertRow(row);
}
Well, at least that's the basic theory behind it...
np: DJ Shadow - Fixed Income (The Private Press)
____________________________
"
I'm not anti-anything, I'm anti-everything, it fits better."
- Sole
R.I.P. Robert Feldhoff (1962-2009)
[Last edited by Briareos at 09-26-2006 05:15 PM]