Originally Posted by naveendk.55
loadValues() and showState4() works fine without sendValues() in window.onload function. Also, I tested sendValues() without above two functions and that also works fine. but three functions in window.onload creates a problem. So it should not be due to the while loop. However, if any code change that you suggest on while loop, then let me know. I am willing to give it a try.
That sounds like you have sendValues() using the same global variable or variables as the other functions use but for a different purpose.