Adobe COLDFUSION 9 Manual page 1097

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Using Web Elements and External Objects
<b>Server-side processing</b><br>
<br>
<cfif isdefined("form.wddxPacket")>
<cfif form.wddxPacket neq "">
<!--- Deserialize the WDDX data --->
<cfwddx action="wddx2cfml" input=#form.wddxPacket#
output="personInfo">
<!--- Display the query --->
The submitted personal information is:<br>
<cfoutput query=personInfo>
Person #CurrentRow#: #firstName# #lastName#<br>
</cfoutput>
<cfelse>
The client did not send a well-formed WDDX data packet!
</cfif>
<cfelse>
No WDDX data to process at this time.
</cfif>
Storing complex data in a string
The following simple example uses WDDX to store complex data, a data structure that contains arrays as a string in a
client variable. It uses the
cfdump
deserialization. It uses the
HTMLEditFormat
The
function is required to prevent the browser from trying to interpret (and throwing away) the
HTMLEditFormat
XML tags in the variable.
tag to display the contents of the structure before serialization and after
function in a
cfoutput
Last updated 8/5/2010
tag to display the contents of the client variable.
1092

Advertisement

Table of Contents
loading

Table of Contents