karenmierkalns
Programmer
I am trying to add new options to a combo box, but the add method is not doing me any good. How do you use the add method for the combo boxes, and is it the right way to add?
For example, in the HTML code, I simply have:
<select name="cboCustomers size=5>
</select>
because based on what value they choose from another combo box (in its click event), I am triggering this combo box to add new values..this is possible client-side, isn't it? I don't want to have to use asp for this because I don't want to refresh the page.
In a vbscript sub, I have:
do while not rsCustomers.EOF
document.frmCompany.cboCustomers.add
rsCustomers.MoveNext
loop
I don't know how to use this add method...no matter how I use it, it doesn't seem to like it.
I saw some examples of using the options property, but I am not sure about that. Any help would be appreciated.
Thanks. - Karen
For example, in the HTML code, I simply have:
<select name="cboCustomers size=5>
</select>
because based on what value they choose from another combo box (in its click event), I am triggering this combo box to add new values..this is possible client-side, isn't it? I don't want to have to use asp for this because I don't want to refresh the page.
In a vbscript sub, I have:
do while not rsCustomers.EOF
document.frmCompany.cboCustomers.add
rsCustomers.MoveNext
loop
I don't know how to use this add method...no matter how I use it, it doesn't seem to like it.
I saw some examples of using the options property, but I am not sure about that. Any help would be appreciated.
Thanks. - Karen