How Wddx Works - MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual

Developing web applications with coldfusion
Table of Contents

Advertisement

244
All of Allaire's WDDX serializers (CFML, COM, and JS) have an attribute/property
useTimezoneInfo
serialization process. The default value is true.
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. Time
zone information is represented as an hour/minute offset from UTC, for example,
"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
time zone of the browser.

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'>
<struct>
</struct>
</var>
The deserialization of this XML by the WDDX Deserializer object would create a
structure similar to what would be created directly by this JavaScript object
declaration:
that specifies whether time zone information should be used in the
useTimezoneInfo
useTimezoneInfo
<var name='a'>
<string>Property a</string>
</var>
<var name='b'>
<string>Property b</string>
</var>
Developing Web Applications with ColdFusion
is a property of the CFWDDX
useTimezoneInfo
WDDX.Serializer.1
(note the case-sensitivity of JS) is a property of the
is a property
. In the JS

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion 4.5

Table of Contents