[jQuery] Re: Adding a delay between .each() function executions

2007-09-04 Thread Oliver Boermans
Champion Franck! Your code working beautifully in Safari/Mac. To my js console at least - I have a little work to put it all together. Regarding the Mac... Keep asking - if you don't the answer is always no!

[jQuery] Re: Adding a delay between .each() function executions

2007-09-04 Thread Franck Marcia
On 4 sep, 16:02, "Oliver Boermans" <[EMAIL PROTECTED]> wrote: > I'm getting a parse error: > I don't understand the js well enough to figure out why... It works fine for me (http://fmarcia.info/jquery/stack) with IE7, IE6, FF2, Opera 9 and Safari 3/Win. I don't know about Safari/Mac as nobody gi

[jQuery] Re: Adding a delay between .each() function executions

2007-09-04 Thread Oliver Boermans
Damn you cut and paste! Funny white space characters to blame :/ > I don't understand the js well enough to figure out why... >

[jQuery] Re: Adding a delay between .each() function executions

2007-09-04 Thread Erik Beeson
.shift()(). Gotta love that syntax. How about an array of function generator functions? .shift()()(); Weee! JavaScript is fun! Could you not remove that anonymous function wrapping doStuff()? Like: stack.actions.push($(that).dostuff); --Erik On 9/4/07, Franck Marcia <[EMAIL PROTECTED]> wrote:

[jQuery] Re: Adding a delay between .each() function executions

2007-09-04 Thread Franck Marcia
You could also pile up actions then run them (untested): var stack = { delay: 1000, actions:[], run: function() { if (stack.actions.length) { stack.actions.shift()(); setTimeout(stack.run, stack.delay);

[jQuery] Re: Adding a delay between .each() function executions

2007-09-03 Thread Karl Rudd
For _most_ browsers changes in the CSS are not reflected in the layout until _after_ your JavaScript is finished executing. I believe the exception is Opera (or is it Safari...?), which also updates the layout after a certain amount of time. If you want to display the changes progressively you'll