Here is code to save the FORM variables structure into a CLIENT WDDX
variable, and then rebuild the FORM structure after a cflocation. This is
an easy way to save all the FORM variables submitted to an action page prior
to the action page <cflocation> back to the display page. Old news to many,
but very handy when using cf_reuseform with the "form" option:
Before cflocate'ing out of the current file act/url file .........
<cfwddx action="CFML2WDDX" input="#form#" output="client.form_variables"
usetimezoneinfo="No">
<cflocation..........>
Before calling cf_resuseform in the dsp file .........
<cfif isdefined("client.form_variables")>
<cfwddx action="WDDX2CFML" input="#client.form_variables#"
output="formTemp">
<cfloop index="formItem" list="#StructKeyList(formTemp)#">
<cfset StructInsert(form,formItem,Evaluate("formTemp." & formItem),
true)>
</cfloop>
</cfif> <!--- modified from John Minor's cf_wddxtoformscope tag at
allaire.com --->
Mike Pellicciotti
[EMAIL PROTECTED] Lockheed Martin Systems Integration - Owego
Phone: (607) 751-4948 1801 State Route 17C, MD 0220
Fax: (607) 751-2800 Owego, NY 13827
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists