[Dojo-interest] Adding options dynamically to the combobox?
Pappas, Corey D.
cpappas at mitre.org
Sun Feb 25 13:10:13 MST 2007
I've searched around the net trying to see if there was a way to add
options dynamically to the ComboBox other than using dataUrl=. It would
seem that there should be. I found these links -
and the most interesting one seems to be this one, where the user
claims to have added data dynamically....but the code is incomplete.-
<input name="foo" dojoType="ComboBox"
style="width: 200px;" />
I have loaded combobox with data.
var genreCombo = dojo.widget.byId("genres");
for (var i=0; i< keys.length; i++)
Anyone have any ideas on if/how this is possible? I searched the
documentation, test pages, and looked through the ComboBox.js file
itself, but with no luck. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dojo-interest