I've got a suitelet client script that I want to h...
# suitescript
k
I've got a suitelet client script that I want to have check the status of tasks launched by the suitelet periodically. I've currently got the listener function fired in pageInit with setInterval, but it prevents the buttons on the page from being clicked because it never stops looping. How can I get the listener to loop in the background instead of taking over the UI?
b
what does the code look like?
k
nevermind, I fixed it by using setTimeout instead of setInterval, and making the listener function recursive.