Hirn, Joseph
2006-Jun-30 14:33 UTC
Ajax.Request synchronization (onSuccess before onComplete?)
2 questions regarding the synchronization of these events. 1) is onSuccess called before onComplete ( I assume it is) 2) if called after, is onComplete called after the onSuccess method has completed or are you at the mercy of synchronization issues? Hopefully someone can enlighten me. I tried reading the Prototype.js but couldn''t seem to determine this on my own. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Not sure if (2) is suggesting overlapping execution, but onComplete will be called after your onSuccess handler exits. Sam -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Hirn, Joseph Sent: Friday, June 30, 2006 10:34 AM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails-spinoffs] Ajax.Request synchronization (onSuccess beforeonComplete?) 2 questions regarding the synchronization of these events. 1) is onSuccess called before onComplete ( I assume it is) 2) if called after, is onComplete called after the onSuccess method has completed or are you at the mercy of synchronization issues? Hopefully someone can enlighten me. I tried reading the Prototype.js but couldn''t seem to determine this on my own. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Thomas Fuchs
2006-Jul-02 14:31 UTC
Re: Ajax.Request synchronization (onSuccess beforeonComplete?)
Just a note on that: JavaScript is single-threaded, so there can''t be any case of overlapping execution of two JavaScript methods. -Thomas Am 30.06.2006 um 16:38 schrieb Sam:> Not sure if (2) is suggesting overlapping execution, but onComplete > will be called after your onSuccess handler exits. > > Sam > > > -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails- > spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Hirn, Joseph > Sent: Friday, June 30, 2006 10:34 AM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: [Rails-spinoffs] Ajax.Request synchronization (onSuccess > beforeonComplete?) > > 2 questions regarding the synchronization of these events. > > > > 1) is onSuccess called before onComplete ( I assume it is) > > 2) if called after, is onComplete called after the onSuccess > method has completed or are you at the mercy of synchronization > issues? > > > > Hopefully someone can enlighten me. I tried reading the > Prototype.js but couldn’t seem to determine this on my own. > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs-- Thomas Fuchs wollzelle http://www.wollzelle.com questentier on AIM madrobby on irc.freenode.net http://www.fluxiom.com :: online digital asset management http://script.aculo.us :: Web 2.0 JavaScript http://mir.aculo.us :: Where no web developer has gone before _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Maybe Matching Threads
- [Prototype] onSuccess Event and Ajax.Updater bug in IE
- RE: [Prototype] onSuccess Event and, Ajax.Updater bug in IE
- onSuccess and onComplete Prototype callbacks
- Ajax.InPlaceEditor onSuccess: ???
- RE: Prototype: correct useage of onComplete withAjax.PeriodicalUpdater