Google Blogoscoped

Forum

[OT] Dynamic Rows in HTML ,insert to database

Suresh S [PersonRank 10]

Sunday, August 23, 2009
14 years ago3,706 views

I needed a solution , to implement adding dynamic HTML table rows and filling them with details , the rows should then be added to database. what is the best way to implement this in jsp.The jsp page on load get the data from the database and creates rows, i can edit the row values and it should be updated,also new rows can be inserted in front end which should also be saved in jsp.

Philipp Lenssen [PersonRank 10]

14 years ago #

I would think you need these components interacting:
- An HTML page loading the basic div's and references
- A CSS stylesheet for all the layout
- A JavaScript page using Ajax to coordinate the data between the client and the server
- Some DOM handling in the JavaScript to display the HTML (creating nodes, updating nodes, grabbing input values)
- A receiving server-side page (e.g. Java in your case) to accept the Ajax communication and return JSON or XML

Because your question at that level is very broad, you might have a harder time finding answers at certain non-paid Q&A site (here's a neat paid site, but there may be better ones for programming questions specifically: http://uclue.com). You could pay a programmer to work it out for you, e.g. consult you, or if you can manage to break down your question into smaller parts – "What is AJAX" – to google for it. Then when you hit a wall with one of the smaller parts, you could phrase that specific question at http://www.stackoverflow.com/

Suresh S [PersonRank 10]

14 years ago #

Thanks philip for a quick technical detail.

Forum home

Advertisement

 
Blog  |  Forum     more >> Archive | Feed | Google's blogs | About
Advertisement

 

This site unofficially covers Google™ and more with some rights reserved. Join our forum!