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" <cf-talk@houseoffusion.com>
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:247542
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to