> I am experimenting with AjaxCFC for the first time today. What is the > best way to grab all the form element in a form, wrap them up and send > them with Ajax to my CFC? Basically I would like to have the same > struct I would end up with in "form" if I did a regular form submit, but > instead it would come in as "arguments.my_form". > > I thought I could just send in document.form_name.elements as an object, > but I was getting a JavaScript error. That may just be a typo somewhere > on my part, but then I was thinking that disabled fields, check boxes, > and radio button might not submit the same way, so I figured I would > just ask what other people have done.
Unfortunately I haven't had the time to document it, but this is a complete solution to make "AJAX-enabled" forms: http://www.massimocorner.com/libraries/ajaxform/ Basically, you link to the relevant .js files and then add a custom attribute to the <form> tag: tmt:ajaxform="true" And that's all. Internally it uses a form serializer I wrote. You can see it in action here: http://www.massimocorner.com/libraries/form/sample_serializer.htm If you want to work at a lower level of abstraction, you could just grab the form serializer. I am sorryt here is still no docs for these, but I hope they could help anyway ---------------------------- Massimo Foti Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.com ---------------------------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:247543 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

