S
Søren M. Olesen
Hi
What's the best/easiest/fastest way to rewrite a table in javascript...
I've tried something like:
var newgrid=document.createElement("table");
//add some rows and cells
var grid=getElementById("table1");
grid.innerHTML=newgrid.innerHTML;
however the last line gives me a runtime error, so I expect it not allowed
to change the innerHTML this way....
Any suggestions would be greatly appreciated.
TIA
Søren
What's the best/easiest/fastest way to rewrite a table in javascript...
I've tried something like:
var newgrid=document.createElement("table");
//add some rows and cells
var grid=getElementById("table1");
grid.innerHTML=newgrid.innerHTML;
however the last line gives me a runtime error, so I expect it not allowed
to change the innerHTML this way....
Any suggestions would be greatly appreciated.
TIA
Søren