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
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
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
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
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
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