I need Dojo/JavaScript help. I would like to use the Dojo AJAX
framework to populate two ComboBoxes. I get the first box populated,
but I need to know how to (dynamically) populate the second based on
the choice made on the first.
Here is some code:
<!--********************-->
<form id="vcdb">
<!-- Present Year options | 2006, 2005, 2005, Et Cetera -->
<select dojoType="ComboBox" value="this should never be seen - it is replaced!"
dataUrl="http://localhost/test/ajax/vcdb.asp" style="width: 300px;"
name="foobar1" maxListLength="15">
</select>
<br>
<!-- Present Make options available | Ford, Chevy, Et cetera -->
<select dojoType="ComboBox" value="this should never be seen - it is replaced!"
dataUrl="http://localhost/test/ajax/vcdb.asp?year={Current value of
foobar1}" style="width: 300px;" name="foobar2" maxListLength="15">
</select>
</form>
<!--********************-->
The first ComboBox works fine; However, I don't know how to
call/populate the second. How do I write {Current value of foobar1}
in JavaScript that Dojo understands?
Thanks. |