> I don't have the docu on hand, but it's either getSelection()[0].getValue() 
> or .getModel() or .getLabel()

The .getLabel() is the one I needed.

//
var mySelectBox = new qx.ui.form.SelectBox();
mySelectBox.add(new qx.ui.form.ListItem("Blue Bus"));
mySelectBox.add(new qx.ui.form.ListItem("Red Radio"));
mySelectBox.add(new qx.ui.form.ListItem("Green Golfball"));
mySelectBox.addListener("changeSelection", function(e) {
        alert( "The selected string-value is 
"+mySelectBox.getSelection()[0].getLabel() );
});
//

mySelectBox.getSelection()[0].getLabel() gives me "Blue Bus" or "Red Radio" or 
"Green Golfball", whichever is the selected one.

Thank you for your help, Fritz!
I very much appreciate the quick solution!

Best Regards,
Keve Nagy * Debrecen * Hungary


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to