Topic: Append table-row elements to existing table (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Phoenix |
posted 12-12-2006 05:52
Hello, |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 12-12-2006 21:42
All right... no magic beyond this, but I had to look at a place where I had done this before |
Paranoid (IV) Inmate From: Norway |
posted 12-12-2006 22:29
Indeed no magic there. Just do some document.createElement( nodeName ) ( where nodeName is td, tr, ... ) and append the resulting nodes where you want/need to. And avoid using innerHTML directly for it can lead to script injection and the like. Prefer using document.createTextNode( 'plainText' ) |