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 <suryabg2...@gmail.com> wrote:
> 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 <mike.wise...@flinders.edu.au> 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 using setTimeout, as in
>
> >           setTimeout("movebus(a,b,c); ", 5000);
>
> > I receive the error message in Firebug "movebus(a,b,c) not defined".
>
> > Can anyone suggest why this is?
>
> > regards
>
> > Mike

Reply via email to