It is as easy as:
loadNewData(newData) {
myCombo.removeAll();
for (var i = 0; i < newData.length; i++) {
myCombo.add(new qx.ui.form.ListItem(newData[i][0], newData[i][1]));
}
}
supposing newData is an array of arrays.
Aaron Cooper-2 wrote:
>
> Would anyone happen to have an example
o:* qooxdoo Development
*Sent:* Thursday, November 16, 2006 2:43 PM
*Subject:* Re: [qooxdoo-devel] Combo/Select boxes made from data
What does the data look like that is getting returned from the server?
Please provide an example of the string that is coming back.
Jim
On 11/15/06, Aaron Cooper <
Hi Jim, I can supply the data in any form. I think I may have found a rather
crude way of doing it and I've just finished testing it, and it seems to work.
I am returning the data as a string in this case. Records are delimited by a
comma, fields are delimited by a colon. Like this:
Format: id:
What does the data look like that is getting returned from the server?
Please provide an example of the string that is coming back.
Jim
On 11/15/06, Aaron Cooper <[EMAIL PROTECTED]> wrote:
Would anyone happen to have an example of how add list items to a
combobox based on data returned from
Would anyone happen to have an example of how add list items to a combobox
based on data returned from an AJAX call?
I've got an AJAX call working fine and it can return either a string or XML.
But I'm pulling my hair out trying to assign the results and add them as list
items.
Code so far - (