W3C home > Mailing lists > Public > www-forms@w3.org > April 2006

Re: Cancel a submission in progress

From: Allan Beaufour <beaufour@gmail.com>
Date: Tue, 4 Apr 2006 14:17:11 +0200
Message-ID: <90d6cb0e0604040517i48ae4634y31638b160d64f7dc@mail.gmail.com>
To: "David Landwehr" <david.landwehr@solidapp.com>
Cc: www-forms@w3.org

On 4/4/06, David Landwehr <david.landwehr@solidapp.com> wrote:
> In XForms a submission can be started and then it has to wait for an
> error or a failure. Wouldn't it be nice if is was possible to cancel an
> submission (e.g. by dispatching an event to the submission element)
> which will make the submission stop by dispatching xforms-submit-error?

I think that is a good idea. As you can start a submissions, I guess
it makes sense to be able to cancel them too. What should happen if
you try to cancel a submission that is not running? NOP I guess?

> Then a new submission can be started, e.g.:
> <xforms:action>
>   <xforms:send submission="s1"/>
>   <xforms:cancel submission="s1"/>
>   <xforms:send submission="s1"/>
> </xforms:action>

I'm not quite following the usefulness in your example though. You
start by "teasing" the submission action, before submitting to it? :)

... Allan
Received on Tuesday, 4 April 2006 12:17:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:17 UTC