1.6

Table Of Contents
for(var i in record.fields){
results.after("<p>" + record.fields[i] + "</p>");
}
Selector Matched element Matched element after script execution
#test <h1 id="test">Fields</h1> <h1 id="test">Fields</h1>
<p>Peter</p>
<p>Parker</p>
<p>pparker@localhost.com</p>
formatter
The formatter is a global object that allows you to format values in a script.
The Text Script Wizard also allows you to format variable data; see "Using the Text Script
Wizard" on page212 and "Formatting variable data" on page215.
Note
The TextFormatter object is now deprecated and will eventually be removed.
Functions
Function Description
l date()
l dateLong()
l dateMedium()
l dateShort()
l dateTime()
l dateTimeLong()
l dateTimeMedium
()
l dateTimeShort()
l timeLong()
The date(), dateTime() and time() functions allow you to format
a date and/or time in different ways. See "Date, date/time and
time functions" on page443.
Page 454