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

Re: switch & repeat controls

From: Allan Beaufour <beaufour@gmail.com>
Date: Thu, 1 Jun 2006 10:42:50 +0200
Message-ID: <90d6cb0e0606010142v1a02ea8cof4617edd1871c772@mail.gmail.com>
To: "Nicolas Duroc" <nicolas.duroc@gmail.com>
Cc: www-forms@w3.org

On 5/31/06, Nicolas Duroc <nicolas.duroc@gmail.com> wrote:
> I have a repeat controls who lists data from a xml file. Nodes which are
> browsed by the repeat control contains another node, and I would like to make
> a switch to hide/show this node (which contains itself other data). I tried to
> do with switch and case control, but all the "id" case should be different,
> with an index by exemple (maybe the repeat index ?), i didn't found any
> examples for this problem, is there a solution ?

As Nick pointed out, the behaviour is undefined for XForms 1.0. We've
implemented a solution in Firefox, and your example should work as you
would expect. Well except for the @selected not working [1].

>                                 <xforms:trigger id="hide-button">
>                                         <xforms:label>Node</xforms:label>
>                                         <xforms:action>

The action needs to listen for ev:event="DOMActivate".

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=339937

... Allan
Received on Thursday, 1 June 2006 08:43:03 UTC

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