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 are CFML2WDDX, which serializes CFML to WDDX; WDDX2CFML, which deserializes WDDX to CFML; CFML2JS, which serializes CFML to JavaScript; and WDDX2JS, 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 is WDDX2CFML. For all other actions, if no value is specified for output, 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 to CFML2JS or WDDX2JS.

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 to No, 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.