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 fired - but if the interval is fired again while the ajax request is still running you get stacked requests or a race condition. So instead PeriodicalExecuter will prevent that from happening and handle the interval firing Jason Westbrook | T: 313-799-3770 | [email protected] On Sun, Feb 17, 2013 at 11:57 AM, kstubs <[email protected]> wrote: > "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 it, send an > email to [email protected]. > To post to this group, send email to > [email protected]. > Visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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 it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
