Kor
01-15-2004, 12:39 PM
I have some difficulties to pass a parameter.
I have some objects with same id, so I want to get them by order number let's say they are obj[i].
I call first function on an event onevent="one(0)" in a place, onevent="one(2)" and so on
function one(param){
obj[param].style.attribute ="blabla";
//so far so good, but from now once...
somevariable = setInteval('two(param)',somenumberhere);//here is a mistake, by sure... but which?
}
function two(param){
//no value passed???
alert(param);
obj[param]... and so on
}
I need the object in second function as well, but how can I pass the parameter in it?
Any ideeas, please?
I have some objects with same id, so I want to get them by order number let's say they are obj[i].
I call first function on an event onevent="one(0)" in a place, onevent="one(2)" and so on
function one(param){
obj[param].style.attribute ="blabla";
//so far so good, but from now once...
somevariable = setInteval('two(param)',somenumberhere);//here is a mistake, by sure... but which?
}
function two(param){
//no value passed???
alert(param);
obj[param]... and so on
}
I need the object in second function as well, but how can I pass the parameter in it?
Any ideeas, please?