< js />
View Element Reference
< js />
Includes a JavaScript file in the view for supporting special processing in the browser such as assistance in view construction or handling of user interaction.
<js file="my-script.js"/>
Enclosing Element: This tag is a direct child of the <view> element.
Encloses: This tag does not enclose any child elements.
Attributes
Attribute | Description | Valid Values | Optional |
---|---|---|---|
file |
The name of the file to be included. When searching for a .js file, Web Central will first look in the same folder as the including AXVW file, and then search in folders defined by
\WEB-INF\config\context\compatibility\afm-config.xml
in the
<searchDirectories>
element under the
<fileCategory>
with extension
js
|
the name of an existing .js file |
one attribute, either
file
or
url
, must be used
|
url | The location of an external JavaScript resource to be included | a URI to an existing .js file |
one attribute, either
file
or
url
, must be used
|