T
Tuxedo
How can a simple string parameter be passed between two functions while
inside a setInterval call? For example:
function initialFunction(x){
alert(x);
setInterval('repeatingStuff(x)',5000);
}
function repeatingStuff(x){
alert(x);
}
....
<a href="..." onclick="initialFunction('param_x');">stuff</a>
But the error "x is not defined" results from ..Stuff(x) in
setInterval('repeatingStuff(x)',5000). How can the parameter between the
two functions be passed within the setInteval bit?
Many thanks,
Tuxedo
inside a setInterval call? For example:
function initialFunction(x){
alert(x);
setInterval('repeatingStuff(x)',5000);
}
function repeatingStuff(x){
alert(x);
}
....
<a href="..." onclick="initialFunction('param_x');">stuff</a>
But the error "x is not defined" results from ..Stuff(x) in
setInterval('repeatingStuff(x)',5000). How can the parameter between the
two functions be passed within the setInteval bit?
Many thanks,
Tuxedo