widget:tab and toggle, cause one to switch the other

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

widget:tab and toggle, cause one to switch the other

Hank Ratzesberger
Hi,

(Have I proposed an awful name for this list yet?  OK, then
how about Well Formulated Ones, WFO )

When one widget:tab is selected, I want to toggle a completely
separate switch/case.  I have tried putting action elements on
both the widget:tab and the group element within those tabs.

In the pseudo code below, when widget t2 is active, the case
r2 is also active.


<widget:tabs>
   <widget:tab id="t1">
   </widget:tab>
   <widget:tab id="t2">
     <action ev:event="DOMFocusIn">
       <toggle case="r2"/>
     </action>
   </widget:tab>
</widget:tabs>

<switch>
   <case id="r1" selected="true">
   </case>
   <case id=r2">
   </case>
</switch>

Well, I will try more event types.

Cheers,
Hank

Institute for Crustal Studies
University of California, Santa Barbara



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: widget:tab and toggle, cause one to switch the other

Hank Ratzesberger

Works fine with xform-select event.

Cheers,
Hank

On May 7, 2009, at 3:15 PM, Hank Ratzesberger wrote:

> Hi,
>
> (Have I proposed an awful name for this list yet?  OK, then
> how about Well Formulated Ones, WFO )
>
> When one widget:tab is selected, I want to toggle a completely
> separate switch/case.  I have tried putting action elements on
> both the widget:tab and the group element within those tabs.
>
> In the pseudo code below, when widget t2 is active, the case
> r2 is also active.
>
>
> <widget:tabs>
>   <widget:tab id="t1">
>   </widget:tab>
>   <widget:tab id="t2">
>     <action ev:event="DOMFocusIn">
>       <toggle case="r2"/>
>     </action>
>   </widget:tab>
> </widget:tabs>
>
> <switch>
>   <case id="r1" selected="true">
>   </case>
>   <case id=r2">
>   </case>
> </switch>
>
> Well, I will try more event types.
>
> Cheers,
> Hank
>
> Institute for Crustal Studies
> University of California, Santa Barbara
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws