View Single Post
  #2 (permalink)  
Old 02-20-2007, 01:49 AM
pshah pshah is offline
Zimbra Employee
 
Posts: 269
Default

Not sure how much detail you're asking for, so here's the basics...

Assuming you have a reference to the TABLE element, all you would need to do is call "insertRow" on the TABLE and pass in an index value of where in the table you want to insert. Passing in "-1" will append to the end of the table.

To tie everything together, add an onclick handler to each of the buttons. In the handler code, either get a reference to the TABLE if it exists via an ID or create one by calling document.createElement("TABLE").

HTH.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote