Basically I want to increment the name of the variable. What is the correct syntax to do this?
for (i=0; i<5; i++) {
eval("var slider_" + i);
var slider_+i = function(){
//some code
}
dojo.addOnLoad(slider_+i);
See Question&Answers more detail:os