View Full Version : handler name="onclick" of <tabpanes> doesn't work
MBachstein
09-02-2008, 01:09 AM
Hello,
I have some <tabpane>s in <tabs> and want to do something "onclick" of a tabpane. Unfortunately, the handler with the name "onclick" does not work in <tabpane>. I also tried "onmousedown", "onvisible", "onfocus". But the click-event wasn't caught.
Is this a bug or do I do something wrong?
Kind Regards,
Marc
hipik
09-02-2008, 04:22 AM
try onselected
Rajeshorey
09-02-2008, 05:44 AM
here goes ....
<canvas debug="true" >
<tabs height="300" width="200">
<tabpane inset_left="0" inset_top="0" inset_bottom="0" inset_right="0" selected="true">TAB 1
<method event="onclick" reference="this.tab">
Debug.write("TAB1 CLICKED");
</method>
</tabpane>
<tabpane inset_left="0" inset_top="0" inset_bottom="0" inset_right="0" >TAB 2
<method event="onclick" reference="this.tab">
Debug.write("TAB2 CLICKED");
</method>
</tabpane>
<tabpane inset_left="0" inset_top="0" inset_bottom="0" inset_right="0" >TAB 3
<method event="onclick" reference="this.tab">
Debug.write("TAB3 CLICKED");
</method>
</tabpane>
</tabs>
</canvas>
antun
09-06-2008, 08:26 PM
Note that you should use:
<handler name="onclick">
...
... instead of:
<method event="onclick">
...
The method syntax is old. Both approaches accept the reference attribute.
-Antun
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.