It would be nice if someone could provide me with a simple example of how to achieve this.
thanks in advance [ February 10, 2008: Message edited by: Bear Bibeault ]
Joined: Feb 22, 2005
There are 2 ways (that I've figured so far) to go about this. 1 => you can try altering the innerHTML value for the table. 2 => you can create a "tr" node element and append it to the table node
I'll only like to forewarn you that in this approach, the value stored in the elements of previous rows will be reset as you're actually repainting the whole content of the DIV again.
For 2: Create a "tr" node using..
Create nodes for every constituent of the "tr" similarly. Then get a reference to the "table" to which you need to append the row, and use...
The flipside to this approach is that for a complex row structure, the creation of node elements can *really* get to be a pain. But since, the structure of your add rows is much simpler, you might want to consider this approach. [ February 10, 2008: Message edited by: Anirvan Majumdar ]