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