[jQuery] Re: setTimeout function call...

2008-12-03 Thread QuadCom
That is just awesome, thanks very much. Just like you said, I did see the syntax as setTimeout("funcName()", 2000); everywhere, even on tutorial sites. I could have saved a few hours, 3 advil and my sanity if I found this out earlier.

[jQuery] Re: setTimeout function call...

2008-12-03 Thread QuadCom
That is just awesome, thanks very much. Just like you said, I did see the syntax as setTimeout("funcName()", 2000); everywhere, even on tutorial sites. I could have saved a few hours, 3 advil and my sanity if I found this out earlier.

[jQuery] Re: setTimeout function call...

2008-12-03 Thread Balazs Endresz
You can see setTimeout("funcName()", 2000); everywhere on the net but it's actually quite ridiculous as it's much easier (and faster) to just pass a function reference to it like this: setTimeout(sendit, 2000); also this will solve the scoping issues as well. If you want to pass some arguments

[jQuery] Re: setTimeout function call...

2008-12-03 Thread QuadCom
Holy @!$! that was fast. Thanks guys, This is all in doc.ready. If I move the regular functions out, I cannot use the 'olde' var in them. If I set the 'olde' var outside of doc.ready, I can't use it inside doc.ready. I'm sure there is a simple fix for this but the little grey cells are smoking a

[jQuery] Re: setTimeout function call...

2008-12-03 Thread SLR
> When I run into this, I put my functions outside the doc.ready.block, > but call them from within it. Then they can share vars. Without any code, it's pretty hard to help troubleshoot issues... But if I had to take a wild guess, I'd say it was a scoping issue. The setTimeOut function excutes

[jQuery] Re: setTimeout function call...

2008-12-03 Thread RyOnLife
When I run into this, I put my functions outside the doc.ready.block, but call them from within it. Then they can share vars.

[jQuery] Re: setTimeout function call...

2008-12-03 Thread Eric Martin
Yeah - some sample code would help... On Dec 3, 1:52 pm, QuadCom <[EMAIL PROTECTED]> wrote: > I am trying to use setTimeout to call another function. Everytime I > put the functions I wish to call within the doc.ready block, I get > errors stating that the function is undefined. If I move it out