[jQuery] Re: setinterval vs. settimeout

2008-04-07 Thread coughlinsmyalias
Hey Ariel, I like this article, its laid out perfectly! On Apr 7, 1:03 pm, Ariel Flesler <[EMAIL PROTECTED]> wrote: > http://ejohn.org/blog/how-javascript-timers-work/ > > -- > Ariel Fleslerhttp://flesler.blogspot.com > > On 7 abr, 12:53, coughlinsmyalias <[EMAIL PROTECTED]> wrote: > > > Hey, I f

[jQuery] Re: setinterval vs. settimeout

2008-04-07 Thread ripple
My understanding is that setInterval is use for looping, cause once the time expires it executes again. It's a delay. Whereas setTimeout will not run again once the function is triggered. coughlinsmyalias <[EMAIL PROTECTED]> wrote: Hey, I found this article here: http://www.evolt.

[jQuery] Re: setinterval vs. settimeout

2008-04-07 Thread coughlinsmyalias
Thank you for this! This is exactly what I needed. Thanks Jake. Ryan On Apr 7, 12:51 pm, "Jake McGraw" <[EMAIL PROTECTED]> wrote: > The following will pop up an alert dialog EVERY 20 (2 milliseconds) > seconds: > > window.setInterval(function(){alert('Hello!');},2); > > The following wi

[jQuery] Re: setinterval vs. settimeout

2008-04-07 Thread Ariel Flesler
http://ejohn.org/blog/how-javascript-timers-work/ -- Ariel Flesler http://flesler.blogspot.com On 7 abr, 12:53, coughlinsmyalias <[EMAIL PROTECTED]> wrote: > Hey, I found this article > here:http://www.evolt.org/article/Using_setInterval_to_Make_a_JavaScript_L... > - to try to clear up my confu

[jQuery] Re: setinterval vs. settimeout

2008-04-07 Thread Jake McGraw
The following will pop up an alert dialog EVERY 20 (2 milliseconds) seconds: window.setInterval(function(){alert('Hello!');},2); The following will pop up an alert dialog ONCE, AFTER 20 (2 ms) seconds: window.setTimeout(function(){alert('Hello!');},2); To keep your site "update