Repeated calculation with different parameters upon MouseUp Button action
I need a repeated calculations with different array parameters upon the same button MouseUp activation.
i.e. when the user press-leave the mouse button I want the Javascript to take 2 values from an array, perform some calculations and send to TextFields. Upon next iteration (a user induced a MouseUp again) the code should move to the next 2 values within the array and so on.
What is the best way to implement it? Should I set any global variable (counter)?
Thanks a lot!
