B
botski007
We have a loop that calculates
argValue = someIntegerValue;
component.onblur = function() { callFun( this, argValue ) };
loop
The problem is that the onblur call is exactly "callFun( this,
argValue )" for every component so that the last value of argValue
gets passed to every component.
What we want is this. Assume, for one iteration, argValue had a value
of 16. We want to generate this:
component.onblur = function() { callFun( this, 16 ) };
Any ideas?
argValue = someIntegerValue;
component.onblur = function() { callFun( this, argValue ) };
loop
The problem is that the onblur call is exactly "callFun( this,
argValue )" for every component so that the last value of argValue
gets passed to every component.
What we want is this. Assume, for one iteration, argValue had a value
of 16. We want to generate this:
component.onblur = function() { callFun( this, 16 ) };
Any ideas?