How to add& delete dynamically rows to a table(URGENT)
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, December 8, 2004 10:09 PM

Hi friends,I have a table in a jsp containing rows as input fields.I have a add button,When ever I click add button I wnat to add a row to the current table,row contains 2 or more input fields.Any related information is invitable.
Thanx in advance(MOSES)

Re: How to add& delete dynamically rows to a table(URGENT)

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, December 11, 2004 09:12 AM

well, if you want to do it on the server side, have the "add" button submit the form, then your servlet computes stuff for the new row, and your jsp writes out the response again with the new row added.


If you want to do it on the client side, then your add button has to call some javascript to find the table element, add the row, etc. You should use the standard DOM for this, e.g. with only elements and children and nodes etc., but many people use Microsoft's proprietary table DOM, which is easier but only works in IE...
About | Sitemap | Contact