enforceScriptTimeout Attribute
Specifies whether to enable or disable a time-out period for scripts in a form.
Type
xsf:xdYesNo
Parent Elements
Element | Description |
---|---|
scripts | Defines the source of all business logic scripts used at the document level in the form. |
Definition
<xsd:attribute name="enforceScriptTimeout" type="xsf:xdYesNo" use="optional" default="yes" ></xsd:attribute>
Remarks
Setting the enforceScriptTimeout attribute to "no" in the form definition file (.xsf) disables the time-out period for scripts running in the form. The default value is "yes".
For code running in a task pane, there is a separate time-out period provided by Microsoft Internet Explorer. This time-out period is not affected by the value of the enforceScriptTimeout attribute.
A time-out period cannot be specified for managed code in InfoPath forms.
Note This item is not supported when the Disable Service Pack features option on the Advanced tab of the Options dialog box in InfoPath is selected or when Microsoft Office 2003 Editions Service Pack 1 or later is not installed. Any form defined by a form definition file (.xsf) that includes this item cannot be opened in InfoPath when service pack features are disabled or unavailable.
Example
The following is an example of the enforceScriptTimeout attribute as it is used in the scripts element:
<xsf:scripts language="jscript" enforceScriptTimeout="no">
<xsf:script src="internal.js" />
<xsf:script src="script.js" />
</xsf:scripts>