Wddxserialize - MACROMEDIA COLDFUSION 5 - CFML Reference

Cfml reference
Hide thumbs Also See for COLDFUSION 5 - CFML:
Table of Contents

Advertisement

694
Parameter
col
value
None.
Return value
Usage
Call this function to set a value in a WddxRecordset instance.
This example calls the setField function:
Example
// create a new recordset
rs = new WddxRecordset();
// add a new column
rs.addColumn("NewColumn");
// extend the recordset by 3 rows
rs.addRows(3);
// set an element in the first row
// newValue is a previously defined variable
rs.setField(0, "NewColumn", newValue);

wddxSerialize

Serializes a record set.
Description
object.
Syntax
Parameters
Parameter
object
serializer
Return value
Returns a Boolean True if serialization was successful; or False if an error occurs.
Usage
This is an internal function; you do not typically call it.
This example is from the WddxSerializer
Example
...
else if (typeof(obj) == "object")
{
if (obj == null)
{
// Null values become empty strings
this.write("<string></string>");
}
else if (typeof(obj.wddxSerialize) == "function")
{
Description
Integer or string; the column containing the element to set
Value to set
( serializer )
wddxSerialize
Description
Instance name of the WddxRecordset object
WddxSerializer instance
Chapter 6 WDDX JavaScript Objects
function:
serializeValue

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 5 - CFML and is the answer not in the manual?

This manual is also suitable for:

Coldfusion 5

Table of Contents