Jump to content


Check out our Community Blogs

markeh

Member Since 03 Mar 2011
Offline Last Active Mar 03 2011 12:28 PM
-----

Topics I've Started

Javascript SQLite HTML5

03 March 2011 - 06:07 AM

I'm not sure whether I should post this here or the html or db subforums as I don't know which is more appropriate, but I'm hoping someone can help in here :crying:

I've made a simple page which creates a database, table etc. I can delete and add records from the the page and the rows are displayed inside text boxes.

I just want to be able to edit the contents of the rows via the text boxes and click the save button to update the row, but no matter what I do I can't get it to work.

This code:
tx.executeSql('UPDATE groupOne SET name = 4, amount = 5 WHERE id=?', [id], renderRecords)
works to set the contents of each row to 4 and 5, but how do i substitute the 4 and 5 for the text box values, it seems so simple but its beyond me!!

Hopefully someone can help, I'm properly stuck now. The full code is at Machine totals (Pastebin)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download