[thelist] ajax and form population

Peter Brunone (EasyListBox.com) peter at easylistbox.com
Tue Dec 13 09:33:32 CST 2005


Hi Dan,

   If you're already getting the information back to the browser, you're 90% there.  I would suggest sending multiple values back as a delimited list of some kind -- pipe-delimited, or if you want to be fancy, you can use tags to delimit, e.g. <field1>firstvalue</field1><field2>secondvalue</field2>... or any combination thereof that you feel will be most useful to you.

   Then you just take the ResponseText from the request, split it up, and start assigning it to form fields.  Piece of cake... unless I've misunderstood the problem, in which case smack me and we'll try again.

Cheers,

Peter

 From: Dan McCullough dan.mccullough at gmail.com

I'm working on a small app that will take the users email and check
for an address in the database. I can populate the information to a
div and outputting it. I'm not sure how to do it and populate a form
and all the fields. Anyone have some time to help?



More information about the thelist mailing list