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 | jwestbr...@gmail.com


On Sun, Feb 17, 2013 at 11:57 AM, kstubs <kst...@gmail.com> 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 prototype-scriptaculous+unsubscr...@googlegroups.com.
> To post to this group, send email to
> prototype-scriptaculous@googlegroups.com.
> 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 prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to