Wouldn't this work? var pe = new PeriodicalExecuter(function(pe) {outsideFunction();}, 3);
pe.stop(); On Thu, Aug 27, 2009 at 1:06 AM, T.J. Crowder <t...@crowdersoftware.com>wrote: > > Hi, > > > I've searched high & low for this but I haven't been able to dig > > anything specific up about stopping the PeriodicalExecuter. > > Really?[1] > > [1] http://prototypejs.org/api/periodicalExecuter > -- > T.J. Crowder > tj / crowder software / com > Independent Software Engineer, consulting services available > > On Aug 26, 10:02 pm, plo <iluvsl...@gmail.com> wrote: > > Hey Everybody, > > > > I've searched high & low for this but I haven't been able to dig > > anything specific up about stopping the PeriodicalExecuter. I've seen > > many examples that stop the PeriodicalExecuter within the same line > > that it's called, but what about from another function? For example, > > I have the PeriodicalExecuter calling another function: > > > > new PeriodicalExecuter(function(pe) {outsideFunction();}, 3); > > > > Is it possible to call pe.stop(); from another function? > > > > Any help would be greatly appreciated. > > > > Cheers. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---