User Guide
WddxSerializer object 791
• Recordset
• Any JavaScript object
This function serializes null values as empty strings.
Syntax
object.serializeValue( obj )
Parameters
Return value
Returns a Boolean True if obj was serialized successfully; or False if an error occurs.
Usage
This is an internal function; you do not typically call it.
Example
This example is from the WddxSerializer serialize function:
...
this.wddxPacket = "";
this.write("<wddxPacket version='1.0'><header/><data>");
bSuccess = this.serializeValue(rootObj);
this.write("</data></wddxPacket>");
if (bSuccess)
{
return this.wddxPacket;
}
else
{
return null;
}
...
write
Description
Appends data to a serialized data stream.
Syntax
object.write( str )
Parameters
Return value
Returns an updated serialized data stream as a String.
Parameter Description
object Instance name of the WddxSerializer object
obj Instance name of the WddxRecordset object to serialize
Parameter Description
object Instance name of the WddxSerializer object
str String to be copied to the serialized data stream