Serializes and de-serializes CFML data structures to the XML-based WDDX format. Generates JavaScript statements to instantiate JavaScript objects equivalent to the contents of a WDDX packet or some CFML data structures.
<cfwddx action = "action" input = "inputdata" output = "resultvariablename" topLevelVariable = "toplevelvariablenameforjavascript" useTimeZoneInfo = "Yes" or "No" validate = "Yes" or "No" >
cfcollection, cfexecute, cfgraph, cfindex, cfobject, cfreport, cfsearch, cfservlet, cfservletparam, cfdump
Use this tag to serialize and deserialize packets of data used to communicate with the browser.
For complete information on WDDX, see Developing ColdFusion Applications.
<!--- This snippet shows basic use of the cfwddx tag. ---> <html> <head> <title>cfwddx Tag</title> </head> <body> <!--- Create a simple query ---> <cfquery name = 'q' dataSource = 'cfsnippets'> select Message_Id, Thread_id, Username from messages </cfquery> The recordset data is:...<P> <cfoutput query = q> #Message_ID# #Thread_ID# #Username#<br> </cfoutput><P> <!--- Serialize data to WDDX format ---> Serializing CFML data...<P> <cfwddx action = 'cfml2wddx' input = #q# output = 'wddxText'> <!--- Display WDDX XML packet ---> Resulting WDDX packet is: <xmp><cfoutput>#wddxText#</cfoutput></xmp> <!--- Deserialize to a variable named wddxResult ---> Deserializing WDDX packet...<P> <cfwddx action = 'wddx2cfml' input = #wddxText# output = 'qnew'> The recordset data is:...<P> <cfoutput query = qnew> #Message_ID# #Thread_ID# #Username#<br> </cfoutput><P> </body> </html>
LiveDocs comments are not longer enabled for ColdFusion 5.0. Please use one of the following resources instead.
ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 5.0