[jQuery] Re: jQuery functions called from setTimeout fails

2009-05-25 Thread Dmytro Liepieshkov
Hi. You can try script below var a,b,c; ... setTimeout(function(){movebus(a,b,c);}, 5000); ... On May 25, 2:05 am, Mike wrote: > I have a jQuery function with three parameters which works just fine > when invoked directly, > >            movebus(a,b,c); > > but when I try to delay its invocatio

[jQuery] Re: jQuery functions called from setTimeout fails

2009-05-25 Thread Dmytro Liepieshkov
Hi. You can try script below var a,b,c; ... setTimeout(function(){movebus(a,b,c);}, 5000); ... On May 25, 2:05 am, Mike wrote: > I have a jQuery function with three parameters which works just fine > when invoked directly, > >            movebus(a,b,c); > > but when I try to delay its invocation

[jQuery] Re: jQuery functions called from setTimeout fails

2009-05-25 Thread Jason Persampieri
Alternatively, another method would be - setTimeout( function() { movebus(a, b, c);}, 300); This format is preferred as it won't invoke 'eval', allows for more complex logic and gets you some nifty closure action. _jason On May 25, 1:36 am, Surya Prakash wrote: > Hi U can try as below: > var

[jQuery] Re: jQuery functions called from setTimeout fails

2009-05-25 Thread Surya Prakash
Hi U can try as below: var a; var b; varc c; setTimeout("movebus("+a+","+ b+","+ c+")",300); i hope this is help ful.. let me know this works for u r not,,, On Sun, May 24, 2009 at 4:05 PM, Mike wrote: > > I have a jQuery function with three parameters which works just fine > when invoked d