[Proto-Scripty] PeriodicalExecuter and Ajax calls

2013-02-17 Thread kstubs
PeriodicalExecuter shields you from multiple parallel executions of a callback function Is this the case for Ajax calls? -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To unsubscribe from this group and stop receiving emails from

Re: [Proto-Scripty] PeriodicalExecuter and Ajax calls

2013-02-17 Thread Jason Westbrook
I've had this happen to me Consider a simple Ajax.Request() that is part of a click observer If a user clicks multiple times on the element that is being observed the Ajax.Request() is fired multiple times in the typical situation of the PeriodicalExecuter this would be a interval that is being

[Proto-Scripty] PeriodicalExecuter#stop

2011-01-27 Thread Walter Lee Davis
The documentation for PE shows this sort of construct used to stop the executer from inside itself: new PeriodicalExecuter(function(pe){ if (foo == bar) { pe.stop(); }else{ doSomething(); } },5); Now my other big use-case for this is that I need it to run until I

[Proto-Scripty] PeriodicalExecuter Issue

2010-07-22 Thread deepa balu
In my project client/server communication is happening through webservice calls. For that i should run more than one(ex:6) PeriodicalExecuter in every minute.My issue is that, PeriodicalExecuter are keep on calling without finishing the call of first one. I want to run a single set of

[Proto-Scripty] PeriodicalExecuter

2010-05-28 Thread Russell Keith
I have a PeriodicalExecuter that is calling a function every so often that makes several AJAX calls. I am not having any luck getting the PeriodicalExecuter to stop via the onFailure callback in the Ajax call. Is this possible? I see in the API doc that I can use stop() within the

[Proto-Scripty] PeriodicalExecuter loading scripts dynamically - in order

2010-01-13 Thread gingerbbm
Dear all I am loading a number of JavaScript files dynamically by appending to the head/ element. To ensure they're added in the correct order I came up with the following code which uses a PeriodicalExecuter to step through an array of script names as and when an anticipated object in each

[Proto-Scripty] PeriodicalExecuter that doesn't stack

2009-11-10 Thread williamt
Im looking for a way to make PeriodicalExecuter not stack plus add in a max period setting. If PeriodicalExecuter could call a function instead of a url I could set/clear some flags so it would or wouldn't make the call depending on the flags. But I don't see how I could do that unless I could

[Proto-Scripty] PeriodicalExecuter, Updater, and Effect.Fade() executing in unexpected order

2009-10-04 Thread LinkMaster03
What I am trying to accomplish is a clock that updates every five seconds. Before it updates I want it to fade out, and after it updates I want it to fade back in. This is what I have right now: html head script type=text/javascript src=prototype.js/script script type=text/javascript

[Proto-Scripty] PeriodicalExecuter Error: this.callback is not a function (prototype.js Line 308)

2009-08-07 Thread Schweitzer
Hi there! Got an error with Prototypes PeriodicalExecuter() (Version 1.6.0.3): When I use the verified (http://www.prototypejs.org/api/ periodicalExecuter) new PeriodicalExecuter(myobject.testMethod(), 3);, everything seems fine (no error in Firebug etc) but after 3 Seconds an error