I want to run the following code:
ajaxUpdate(10);
With a delay of 1 second between each iteration. How can I do this?
You can use the function setTimeout(String fonc, Integer delay). For example, to execute your code each second you can do :
window.setTimout("ajaxUpate",100);
Hope i answer to your question ;)