Well when I use any of the following: document.form_name document.form_name.elements or document.form_name.children
I get the same result. Doing a client side JavaScript dump with sDumper() shows me that my object contains EVERY SINGLE HTML ELEMENT between the form tags including tables, and divs etc. Then when I try to call the Ajax engine with DWREngine._execute I am told "Object doesn't support this property or method". And of course, the line number my browser gives me doesn't correspond at all to the code I am working with. I think I may need to install a JavaScript debugger-- it is just too painful trying to guess what the heck most generic JavaScript errors mean-- especially when the line number is always wrong. ~Brad -----Original Message----- From: Josh Nathanson [mailto:[EMAIL PROTECTED] Sent: Monday, July 24, 2006 2:21 PM To: CF-Talk Subject: Re: send form elements with ajaxcfc What happens if you do document.form_name instead of document.form_name.elements? That would send the form object as a structure I think, which you could reference in your CFC. In your CFC you could work with the different kinds of form elements that would be sent. -- Josh ----- Original Message ----- From: "Brad Wood" <[EMAIL PROTECTED]> To: "CF-Talk" <[email protected]> Sent: Monday, July 24, 2006 12:08 PM Subject: SOT: send form elements with ajaxcfc > Quick question... > > > > 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. > > > > Thanks. > > > > ~Brad > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:247545 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

