Re: XForms timer

On 4/27/06, Erik Bruchez <ebruchez@orbeon.com> wrote:
> <xforms:timer id="my-timer" timeout="1000" repeat="true"/>
>
> The timer will just fire an event, for example "xforms-timer", when
> necessary.
>
> <xforms:timer id="my-timer" timeout="1000" repeat="true">
>    <xforms:send ev:event="xforms-timer" submission="background-save"/>
> </xforms:timer>
>
> You probably need actions and/or events to start and stop a timer as well.

Yes, it looks fine, but then yes "you probably need ...", etc. All
this is "solved" in javascript. I would still like a justification to
why it is important to have an XForms specific timer.

> But it looks easier than the Javascript below, no? ;-)

That _is_ the aim of syntatic sugar ;)

--
... Allan

Received on Thursday, 4 May 2006 07:43:44 UTC