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.
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.
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
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
> 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
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.
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
7 matches
Mail list logo