• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Dynamically inserting/deleting table rows

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to be able to dynamically insert or delete a row from a table using (preferably) client-side JavaScript. I am generating a report that enables a user to add filters. When the user clicks the add button, a new row appears. If the user clicks the remove button for a filter that has been added, that row should disappear. Thanks in advance for any help. --Richard Robbins
 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is very easy with IE. Just refer to the Table Object Model of DHTML. There are functions like insertRow(), insertCol() etc. You may refer to msdn.microsoft.com to find the syntax.
All the best.

Originally posted by Richard Robbins:
I need to be able to dynamically insert or delete a row from a table using (preferably) client-side JavaScript. I am generating a report that enables a user to add filters. When the user clicks the add button, a new row appears. If the user clicks the remove button for a filter that has been added, that row should disappear. Thanks in advance for any help. --Richard Robbins


 
reply
    Bookmark Topic Watch Topic
  • New Topic