Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

enforceScriptTimeout Attribute

Office 2007

Specifies whether to enable or disable a time-out period for scripts in a form.

Type

xsf:xdYesNo

Parent Elements

ElementDescription
scriptsDefines 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.

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>


Community Additions

ADD
Show:
© 2015 Microsoft