Sometimes it happens, that I need to PAUSE the flow of my script. And I mean pause, with capital letters, because these times a simple setTimeout would not help.
There is a very nice, browser independent method to do this:
1. Create a synchronous AJAX call
2. On the server side call the "sleep( [sec] )" function
And this is the PHP part:
That's all folks.. isn't it easy? :)
Feel free to share your thoughts with me.