Name
cfwddx
Synopsis
<cfwddx>
Serializes and
deserializes data according to the WDDX XML DTD. The
cfwddx
tag can also create JavaScript statements
that instantiate equivalent JavaScript objects. The
cfwddx
tag can serialize/deserialize binary data.
Binary data is automatically base64-encoded before being serialized.
This capability allows you to send binary files in WDDX packets. More
information on WDDX can be found athttp://www.openwddx.org.
Attributes
-
action="
action
"
The action to be performed by the
cfwddx
tag. Required. Possible actions areCFML2WDDX
, which serializes CFML to WDDX;WDDX2CFML
, which deserializes WDDX to CFML;CFML2JS
, which serializes CFML to JavaScript; andWDDX2JS
, which deserializes WDDX to JavaScript.-
input="
data
"
The data to be serialized/deserialized. Required.
-
output="
variable_name
"
A variable to hold the data after it has been serialized/deserialized. Required when
action
isWDDX2CFML
. For all other actions, if no value is specified foroutput
, the processing results are outputted in the HTML stream.-
toplevelvariable="
variable_name
"
The name of the top-level JavaScript object created when deserialization occurs. Required when
action
is set toCFML2JS
orWDDX2JS
.-
usetimezoneinfo="Yes|No"
Whether or not to use time-zone information when serializing CFML to WDDX. If this attribute is set to
Yes
, ColdFusion calculates the hour/minute offset for all date/time objects in the WDDX packet. If set toNo
, local time is used for all date/time objects. ...
Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.