Re: switch & repeat controls

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