PDA

View Full Version : combobox changeHandler


bimal
04-11-2003, 04:17 PM
the following code gives me an infinite loop error.
however, component.getSelectedIndex().data does not
is it the way that this change handler is implemented that I should probably find out?
or is it something that i have overlooked?

combobox.setChangeHandler("change");
function change(component)
{
trace("cv: " + component.valueOf());
component.setSelectedIndex(0);
}

thanks

bimal
04-11-2003, 04:24 PM
sorry i figured it out...
for those of u curious..
i was changing the combobox value everytime the change handler was called
this called the change handler again
and caused an infinite loop

sorry about this

linckx
04-11-2003, 05:18 PM
no problem,

thanx for including the solution :)
robin