handlerObject Attribute

Microsoft Office InfoPath

Show All Show All

handlerObject Attribute

Identifies the unique name of the event handler in the scripting code.

Type

      xsd:string
    

Remarks

The handlerObject attribute is a required attribute of the domEventHandler element.

The referenced script must use this name to define event handlers for the specified XML Document Object Model (DOM) node. For example, script may contain functions such as TravelExpenses::OnValidate and TravelExpenses::OnAfterChange that are called whenever the specified events occur at the matching XML DOM node.

Example

The following is an example of the handlerObject as it is used in the domEventHandler element:

    <xsf:domEventHandlers>
   <xsf:domEventHandler
      match="TravelReport/Expenses"
      handlerObject="TravelExpenses"/>
</xsf:domEventHandlers>