From version 5.0.545.0 you can try putting the following code in the Global JavaScript to enable setTimeout() and related functions. Then the same code should run in Classic 5 and online.[br][br][b]This isn't supported[/b] and the behaviour may be different between versions (JavaScript is single-threaded online but Classic 5 is not) but hopefully it's useful to make the workflow a bit easier.[br][br][br][code]/**[br]* Timer for Rhino, original functions from http://stackoverflow.com/questions/2261705/how-to-run-a-javascript-function-asynchronously-without-using-settimeout#answer-5767884[br]* written by Weston C.[br]* Packaged by Ryan Blunden[br]*/[br][br]var root = this; // global context[br][br]if (typeof JavaAdapter != "undefined") {[br][br] root.timer = new java.util.Timer();[br] root.counter = 1;[br] root.ids = {};[br][br] root.setTimeout = function(fn, delay) {[br] var id = counter++;[br] ids[id] = new JavaAdapter(java.util.TimerTask, {[br] run: fn[br] });[br] timer.schedule(ids[id], delay);[br] return id;[br] }[br][br] root.clearTimeout = function(id) {[br] ids[id].cancel();[br] timer.purge();[br] delete ids[id];[br] }[br][br] root.setInterval = function(fn, delay) {[br] var id = counter++;[br] ids[id] = new JavaAdapter(java.util.TimerTask, {[br] run: fn[br] });[br] timer.schedule(ids[id], delay, delay);[br] return id;[br] }[br]}[br][/code]