XForms Timer

From W3C XForms Group Wiki (Public)
Jump to: navigation, search

XForms Timer

The XForms Timer element allows an event to be dispatched after a delay, the event dispatching can be repeated.


<xforms:timer autostart="xsd:boolean" delay="xpath-number" repeating="xpath-boolean"/>


delay required Specifies the pause before next dispatching in seconds.
autostart optional default: true. if true the timer autostarts on xforms-ready, if false it does not autostart
repeating optional default: false. if trye the timer will restart after each dispatch, if false it does not restart

A Forms Processor must delay at least the number of seconds defined by @delay after timer start before dispatching xforms-timer event to the timer element.

A timer can be started and stopped using events, xforms-start-timer and xforms-stop-timer.

xforms-start-timer The default handling for this event is starting the timer defined by the EventTarget, should the EventTarget not be a timer nothing will happen. xforms-stop-timer The default handling for this is event is to stop the timer defined by the EventTarget, should the EventTarget not be a timer nothing will happen.