CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript programming (http://www.codingforums.com/forumdisplay.php?f=2)
-   -   setTimeout freezing (http://www.codingforums.com/showthread.php?t=286611)

tomaz42 01-29-2013 05:06 AM

setTimeout freezing
 
I've got a fairly simple javascript website which some of the time works perfectly, but every few attempts it will freeze on this command...

setTimeout(partner2, 3000);

If anyone knows why this would happen, and why it only sometimes happens, i would greatly appreciate it!

Thanks all.

Philip M 01-29-2013 08:08 AM

A second instance of setTimeout() called while the first is still active? (Within 3 seconds).

tomaz42 01-29-2013 08:49 AM

Quote:

Originally Posted by Philip M (Post 1309404)
A second instance of setTimeout() called while the first is still active? (Within 3 seconds).

I use quite a few setTimeout() commands in my code. But only in different functions so I'm not sure how they could conflict with each other.

tomaz42 01-29-2013 10:06 AM

These functions are sort of on a loop, but each connecting to the others using setTimeout commands.

The completion of the 4 functions are looped 10 times and has frozen on different loops and even not at all, but when it does it's always at the same stage (eg. from function 2 to function 3).


All times are GMT +1. The time now is 11:14 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.