Hi, There isn't such API, but you can always extend widgets to provide the functionality you need. So you can write static function for this somewhere or extend existing SelectBox.
-- Best regards - Petr Kobalicek <http://kobalicek.com> On Fri, Feb 12, 2010 at 4:33 PM, hkalyoncu <[email protected]> wrote: > > i want to populate a selectBox with ajax request. > there is no problem with ajax request i can get the result in text or json > anyway. > but the tricky part is populating selectBox with this result. > i can see only selectBox.add() method in the API Reference. > but my return object is a long list with in the format of value - text pairs > (like in html selectbox) > its very annoying to add each item with add() method. it would be great if > there is method like > selectBox.load(json_data); > > what is the best way to achieve this? any suggested way? > > regards > huseyin > -- > View this message in context: > http://n2.nabble.com/populating-SelectBox-with-ajax-request-tp4561693p4561693.html > Sent from the qooxdoo mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
