By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,625 Members | 1,636 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,625 IT Pros & Developers. It's quick & easy.

Wait Execution - JavaScript

P: 17
I'm building an intranet the is going to be used to perform network tests. The tests are FTP,HTTP,PING, etc.
I need to do sequences of this tests, but i need that a test only starts, when the previous test had finished.
Is it possible to create a wait execution function?
Nov 14 '06 #1
Share this Question
Share on Google+
1 Reply

P: 113
I am not sure of this but I have run into similar problems in the past (printing multiple documents in code does this too where some get missed b/c the code is too fast).

The way I usually work around it is insert a For Loop that goes through ~100 times. Now, I will get criticized for this for bad style or wasting code time but if the code is supposed to wait until the previous operation is done, then it's waiting anyway.

This would be my suggestion because it's worked in the past. I'm sure there are better ways out there however. Hope this helps.

- LB
Nov 14 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.