I have an HTML form (form #1) which uses a java servlet to save customer data through textfield/checkboxes/drop down field values to a mysql database. On the same page i also have a search facility that will search and show the results of a customer search in a small table on the same page using another servlet. Once the table populates with results, i have an onclick function that will highlight the row(s) that the user will select. Now my purpose is to populate the same customer form (form #1) based on the user selected row.
Meaning, I am giving option to the user to click once on the row(s) of the search result table and to edit that particular customer(s)'s data, they will double click which will trigger another (form #2) that will do a search on the customer's particular ID (primary key) using a java servlet that will search the particular database and table with the provided ID and based on that, I want to populate the form#1 so that if the user wants to edit their data and re-save they can do so. sounds complicated? not so much...remembering what i really want to know is how to repopulate a form with javascript using double click. I've tried using a hidden field that will save this ID and pass it on to the servlet, for some reason its not working. Perhaps you guys are better aware of in-place html form editing than me, because i've scoured the net fruitlessly. And this is something that developers can really use, i mean how come this is not common?