Good Afternoon Everyone! I may need some help with how to get the string of a SelectBox's selected item.
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 "+... ); }); How do I refer to the string part of whatever is selected in the SelectBox? What do I put at the … to get "Blue Bus" or "Red Radio" or "Green Golfball"? I tried the most obvious-looking mySelectBox.getSelection(), this prints "qx.ui.form..ListItem[strange number here]". I also tried mySelectBox.getSelection()[0], as getSelection() is supposed to return an array. The API documentation does not reveal a property of qx.ui.form.ListItem that would give me the string-value of the item. I don't see something that I should. Any help is appreciated! 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