Dan, How would you loop through the struct to access key and keyvalue once you got this, structOfAllFields = qFormAPI.getFields();?
-----Original Message----- From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED] Sent: Friday, December 16, 2005 8:07 AM To: CF-Talk Subject: RE: AJAX related: onClick grab all form elements Bryan, qForms has this functionality: You can do: oForm = new qForm("frmName"); // return all form fields in the document.frmName form structOfFields = oForm.getFields(); // return all form fields in every form object in the DOM structOfAllFields = qFormAPI.getFields(); -Dan >-----Original Message----- >From: Bryan Stevenson [mailto:[EMAIL PROTECTED] >Sent: Thursday, December 15, 2005 5:17 PM >To: CF-Talk >Subject: AJAX related: onClick grab all form elements > >Hey All, > >Now that I'm looking into AJAX, I'm wondering how I can grab the values of >ALL form elements with an onClick event? > >I'd like to grab them all as a structure or array and send the FORM scope >off to a CFC to perform server-side validation and passback the results >(i.e. avoid the full form post and page refresh as you'd have in normal >server-side validation). > >Hopefully that was clear enough ;-) > >TIA > >Cheers > >Bryan Stevenson B.Comm. >VP & Director of E-Commerce Development >Electric Edge Systems Group Inc. >phone: 250.480.0642 >fax: 250.480.1264 >cell: 250.920.8830 >e-mail: [EMAIL PROTECTED] >web: www.electricedgesystems.com > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227185 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54