I had a similar problem trying to put the form scope in wddx packet. For me, it keep
dropping fields at random. I would be nice to know why this issue exists. Any MX Gods
out there care to explain why the form struct keeps dropping vars when you try to wddx
it?
This is how I got around it......
<cfset locExcludeList = "FIELDNAMES"> <!--- you could stick others here to keep them
out of the packet --->
<cfloop collection="#form#" item="i">
<cfif not listFind(locExcludeList,i)>
<cfset "locForm.#i#" = form[i]>
</cfif>
</cfloop>
<cfwddx action="cfml2wddx" input="#locForm#" output="locFormPacket">
Justin Hansen
--------------------------
Uhlig Communications
Systems Engineer
--------------------------
[EMAIL PROTECTED]
913-754-4273 Office
816-695-4045 Mobile
--------------------------
-----Original Message-----
From: Cutter (CF_Talk) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 9:26 AM
To: CF-Talk
Subject: Re: Form.Fieldnames and MX
Though Form is selected for Display, nothing for Form is coming up on
the action page in the debugging info. (Maybe because no data is being
passed?)
Cutter
Andy Ousterhout wrote:
>Turn on Display Variables in CF Admin and see what is getting passed....
>
>-----Original Message-----
>From: Cutter (CF_Talk) [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, February 13, 2003 8:29 AM
>To: CF-Talk
>Subject: Form.Fieldnames and MX
>
>
>Ok, what happened? I used to be able to loop through form.fieldnames to
>create a list of all of the fields and then I could write my processor
>script. CFMX, on the other hand, gives me the following:
>
>Element FIELDNAMES is undefined in FORM.
>
>Anybody have any ideas?
>
>Cutter
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4