72
In the CFML implementation,
useTimezoneInfo
is a property of the CFWDDX
Action=Cfml2WDDX tag. In the COM implementation,
useTimezoneInfo
is a property
of the IWDDXSerializer interface provided by the object
WDDX.Serializer.1
. In the JS
implementation
useTimezoneInfo
(note the case-sensitivity of JS) is a property of the
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'>
<struct>
<var name='a'>
<string>Property a</string>
</var>
<var name='b'>
<string>Property b</string>
</var>
</struct>
</var>
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();
x.a = "Property a";
x.b = "Property b";
See the CFML Language Reference for more information on JavaScript objects.
Содержание COLDFUSION STUDIO 4.5-USING COLDFUSION...
Страница 1: ...Allaire Corporation Using ColdFusion Studio ColdFusion Studio 4 5 for Windows 95 98 NT4 2000...
Страница 16: ...xvi Contacting Allaire...
Страница 90: ...82...
Страница 130: ...122...
Страница 133: ...141 Two VTML tags CAT and E let you customize the content of these dialog boxes...
Страница 182: ...190...