The load element

Release 2.0 - ...

This action traverses the specified link.

The URI specifying the link to traverse may be pointed to by the Single Node Binding attributes, if given, or by the resource attribute or the resource child element. Individually, the Single Node Binding, resource element and resource attribute are not required. If none are given, the action has no effect.

If the Single Node Binding is present and does not select an instance data node, then this action has no effect. If the Single Node Binding is given in addition to one of the resource attribute or resource element, then the action has no effect.

The following are the possible values for the show attribute and the corresponding processing behaviors:

  • new: The document is loaded into a new presentation context, e.g., a new window. Form processing in the original window continues.
  • replace: The document is loaded into the current window. Form processing is interrupted, exactly as if the user had manually requested navigating to a new document.

Example

XML CopyCode image Copy Code
<xforms:trigger>
   <xforms:label>Load Xforms Specification</xforms:label>
   <xforms:load ev:event="DOMActivate" resource="http://www.w3.org/TR/xforms11/" />
</xforms:trigger>

Attributes

Name Required / optional Description
resource optional Link to an external resource to load.
show optional Link behavior specifier. The allowed values are replace and new.
If this attribute is missing, a default value of replace is assumed.
Single Node Binding optional One or more attributes from the Single Node Binding Attributes group (ref, model, bind).
Common Attributes optional Any attribute from the Common Attributes collection (e.g. id).
XML Events optional Any attribute from the XML Events collection (e.g. ev:event)
Common Action Attributes optional Any attribute from the Common Action Attributes collection (if or while)

Content

The load element does allow a single resource child element.

Specification

Link to the XForms specification: the load element.

Topics