When calling dojo.wipein
and dojo.wipeout
from buttons, everything works great. But calling them based on the value in a combobox: I can't do it. Does anyone know how to make calling client side script depend on the value of a combobox?
In other words, if I change the combobox to "Yes", fire dojo.wipein
, if I change the combobox to "No", fire dojo.wipeout
.
EDIT: Thank you everyone for your help. Here is the code that worked. I am a beginner in javascript, which might show, but it works.
var comboValue = dojo.byId("#{id:comboBox1}").value
if (comboValue == 'Yes'){
dojo.fx.wipeOut({node:'Lewiston',duration:400}).play();
}else if (comboValue == 'No'){
dojo.fx.wipeIn({node:'Lewiston',duration:400}).play();
}else{
alert("the value is neither yes nor no!")
}