PDA

View Full Version : Populating a form with server data



sebak
20 Feb 2009, 3:16 PM
Hello,

I have a form that I can send to my server, which saves it in the database.

Now I also want to be able to change records. What would be the best way to populate the form with the data? (I have all kinds of form elements: checkboxes, radios, dropdowns, combos, text, ...)

Currently the only way I see is to load the data (in json or xml), and manually set the text / select state /... for all elements.

There must be a better way.

Thx in advance