Z
zephyr
I get this error
"missing ] after element list"
on the line containing the var t=setTimeout("...
args={
parentEl:args.parentEl,
currWidth: currWidth,
timeout: args.timeout,
orgWidth:args.orgWidth,
callback:args.callback,
timeStep:timeStep
};
var t=setTimeout("createTimeBar("+args+")",refresh);
I need to call this function "createTimeBar()" with the argument args
but the string concatenation (+) cripples the object argument. I don't
know of any other way to use settimeout with a object argument...
Whats the fix here?
Marc
"missing ] after element list"
on the line containing the var t=setTimeout("...
args={
parentEl:args.parentEl,
currWidth: currWidth,
timeout: args.timeout,
orgWidth:args.orgWidth,
callback:args.callback,
timeStep:timeStep
};
var t=setTimeout("createTimeBar("+args+")",refresh);
I need to call this function "createTimeBar()" with the argument args
but the string concatenation (+) cripples the object argument. I don't
know of any other way to use settimeout with a object argument...
Whats the fix here?
Marc