[Proto-Scripty] Re: stopping the PeriodicalExecuter

2009-08-28 Thread Daniel Rubin
Walter Lee Davis wrote: > You need to create a reference to the PE, and call stop on that > reference. > > var pe; > > pe = new PeriodicalExecuter(...); > > ...later, in another script... > > pe.stop(); > > pe has to be a global variable, but if both the start and stop of the > PE happens

[Proto-Scripty] Re: stopping the PeriodicalExecuter

2009-08-27 Thread Walter Lee Davis
You need to create a reference to the PE, and call stop on that reference. var pe; pe = new PeriodicalExecuter(...); ...later, in another script... pe.stop(); pe has to be a global variable, but if both the start and stop of the PE happens inside a class, it doesn't have to be entirely gl

[Proto-Scripty] Re: stopping the PeriodicalExecuter

2009-08-27 Thread plo
Hey Paul, I've tried so many different things that I've lost track. I was pretty sure that I tried what you've suggested, I gave it another go just in case but it's not calling the .stop(). I was beginning to think that it's not possible which is what led me to post here. Cheers, Paul On Aug

[Proto-Scripty] Re: stopping the PeriodicalExecuter

2009-08-27 Thread plo
Hey T.J, I meant that I couldn't find information for what I was trying to do specifically. I've read the periodicalExecuter docs on the prototype site which only demonstrates how to call the .stop() from within the same periodicalExecutor call. Ideally, I'm looking to call the .stop() from ano

[Proto-Scripty] Re: stopping the PeriodicalExecuter

2009-08-27 Thread Paul Kim
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 wrote: > > Hi, > > > I've searched high & low for this but I haven't been able to dig > > anything specific up about stopping the PeriodicalExecut

[Proto-Scripty] Re: stopping the PeriodicalExecuter

2009-08-27 Thread T.J. Crowder
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 availa