How Wddx Works - MACROMEDIA COLDFUSION STUDIO 4.5-USING COLDFUSION STUDIO Use Manual

For windows 95/98/nt4/2000
Table of Contents

Advertisement

72
In the CFML implementation,
Action=Cfml2WDDX tag. In the COM implementation,
of the IWDDXSerializer interface provided by the object
implementation
WDDXSerializer object.
Date-time values in WDDX are represented using a subset of the ISO8601 format.
Timezone information is represented as an hour/minute offset from UTC, e.g.,
"1998-9-8T12:6:26-4:0".
During WDDX deserialization to CFML and COM time zone information is
automatically taken into account and all date-time values are converted to local time.
In this way, UTC is taken out of the picture entirely and developers do not need to
worry about the details of time zone conversions.
However, during deserialization to JavaScript expressions, time zone information is
not taken into account. Complications arise because of the difficulty of knowing the
timezone of the browser. We will address this issue in an upcoming release.

How WDDX Works

The WDDX vocabulary describes a data object with a high level of abstraction. For
instance, a simple object with two string properties might take the following form after
it is serialized into a WDDX XML representation for delivery via HTTP:
<var name='x'>
The deserialization of this XML by the WDDX Serializer object would create a structure
similar to what would be created directly by this JavaScript object declaration:
x = new Object();
See the CFML Language Reference for more information on JavaScript objects.
useTimezoneInfo
(note the case-sensitivity of JS) is a property of the
useTimezoneInfo
<struct>
<var name='a'>
<string>Property a</string>
</var>
<var name='b'>
<string>Property b</string>
</var>
</struct>
</var>
x.a = "Property a";
x.b = "Property b";
is a property of the CFWDDX
useTimezoneInfo
WDDX.Serializer.1
is a property
. In the JS

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion studio 4.5

Table of Contents