XFA Specification
Chapter 15, Template Specification
Template Reference
619
The script element
An automation element that contains a script.
<script
Properties:
binding="XFA
|
cdata"
contentType="application/x-formcalc
|
cdata"
id="xml-id"
name="xml-id"
runAt="client
|
server
|
both"
stateless="0
|
1"
use="cdata"
usehref="cdata"
>
...pcdata...
</script>
The script element is used within the following other elements:
breakAfter breakBefore calculate event proto traverse validate variables
Content
This element contains a script in the scripting language specified by the
contentType
property.
The binding property
Identifies the type of application to which the script is directed.
XFA
The script is to be applied by standard XFA applications.
cdata
Any value other than XFA signifies that the script may be ignored by standard XFA applications.
The contentType property
The type of content in the enclosed script.
The following values are allowed:
application/x-formcalc
A FormCalc script, as defined in
FormCalc Specification.
cdata
Support for other script types, such as
application/x-ecmascript
is
implementation-defined.
The id property
A unique identifier that may be used to identify this element as a target.
Home Index Bookmark Pages
Pages: Home Index All Pages