Advertisement

12.29.2002 at 01:53AM PST, ID: 20438455
[x]
Attachment Details

Sleep / Wait in Javascript

Asked by efratb in JavaScript

Tags: , ,

Hi,

I want to wait few seconds between 2 operations in javascript.
Is there a way to do it (something like sleep in Java or wait in c)?

I'm using the setTimeout(), but the problem is that sometimes I have problems with timeout intervals that are bigger than 600 ms. (Have any idea why?)

Thanks,
Efrat  Start Free Trial
 
Loading Advertisement...
 
[+][-]12.29.2002 at 02:09AM PST, ID: 7641465

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.29.2002 at 02:09AM PST, ID: 7641467

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: JavaScript
Tags: javascript, sleep, wait
Sign Up Now!
Solution Provided By: hongjun
Participating Experts: 3
Solution Grade: A
 
 
[+][-]12.29.2002 at 02:34AM PST, ID: 7641503

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.29.2002 at 03:10AM PST, ID: 7641546

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.29.2002 at 04:59AM PST, ID: 7641700

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.09.2003 at 02:15PM PDT, ID: 9523791

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32