2018.1

Table Of Contents
Object Description
create a script with a selector and use the results object in the script (see
"results" on page1026).
Global functions
Function Description
"loadhtml()"
on
page1067
Loads HTML data from aHTML (snippet). The returned HTML can be
placed into a variable or into a set of HTML elements.
"loadjson()"
on
page1070
Loads jsondata from a URL. This is a simple way to retrieve content from
external systems.
"query()" on
page1074
Performs a query in the template's contents and creates a new result set
containing the HTML elements that match the given CSS selector.
"resource()"
on
page1076
This function returns information about an image resource. It can also be
used to check if a file exists.
Examples of iterator functions
Function Description
"Each" on
page1056
A generic iterator function, to iterate over the elements in the result set
"For...in" on
page1058
Iterates over the enumerable properties of an object, in arbitrary order. For
each distinct property, statements can be executed.
logger
This is a global ScriptLogger object that allows logging messages such as error, warning or
informational messages. The messages will appear in the Messages pane (see "Preflight
Page 1023