W3C home > Mailing lists > Public > www-forms@w3.org > July 2009

Re: toggle element for select1's item ?

From: Swithun Crowe <swithun@swithun.servebeer.com>
Date: Tue, 21 Jul 2009 22:31:20 +0100 (BST)
To: www-forms@w3.org
Message-ID: <alpine.LNX.1.10.0907212226050.4247@shadrach>

LJG Hi, I was wondering if there is an effective way of replacing a set of 
LJG triggers (which toggles a switch) with a select1 element?

You could have a series of xf:group elements instead of xf:case elements. 
Each xf:group is bound to the same node that the select1 is, but each 
specifies that the node has a different value. Something like:

<xf:select1 ref="selectNode">

<xf:group ref="selectNode[.='val1']">

<xf:group ref="selectNode[.='val2']">

Only one (or none) can be relevant at the same time, so this can be used 
to hide the others.

I hope this gives you some ideas.

Received on Tuesday, 21 July 2009 21:32:02 UTC

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