240
For complete information on WDDX, see the "Programming with XML " chapter in
Developing Web Applications with ColdFusion.
Example
<!--- 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>
--->
CFML Language Reference
Need help?
Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?