[Dojo-interest] Adding options dynamically to the combobox?
Pappas, Corey D.
cpappas at mitre.org
Sun Feb 25 13:10:13 MST 2007
Hi,
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 -
http://dojotoolkit.org/pipermail/dojo-interest/2006-August/015519.html
http://dojotoolkit.org/pipermail/dojo-interest/2006-November/021258.htm
l
and the most interesting one seems to be this one, where the user
claims to have added data dynamically....but the code is incomplete.-
http://dojotoolkit.org/pipermail/dojo-interest/2006-April/006830.html
<input name="foo" dojoType="ComboBox"
type="text" widgetId="genres"
style="width: 200px;" />
I have loaded combobox with data.
var genreCombo = dojo.widget.byId("genres");
var gdata=[];
for (var i=0; i< keys.length; i++)
gdata.push([keys[i], keys[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.
Corey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20070225/c08b8197/attachment.html
More information about the Dojo-interest
mailing list