Skip to main content

How To get label value from TabbedView in JMAKI

1 reply [Last post]
rizwaanmd
Offline
Joined: 2007-05-30

I'm not able to get Tab label Value from TabbedView of Jmaki...

I used the following way to get value

jmaki.addGlueListener("/yahoo/tabbedview/onClick",
"jmaki.listeners.yahooTab");

jmaki.listeners.yahooTab = function(args) {

var contentValue = args.value;
var contentId = args.id;
alert("contentValue = "+contentValue);
}...

But the value is not displaying .. value which I'm getting "[object: Object]"

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
carlavmott
Offline
Joined: 2005-02-10

for this widget looks like you need to get the value as follows.

var contentValue = args.value.label;

Please write a bug so we can investigate and make it consistent with the other widgets.
I think what you had should be the way to get the value but I want to hear why this
is different.

Thanks,
Carla