[Rails-spinoffs] Ajax.Request synchronization (onSuccess
beforeonComplete?)
Thomas Fuchs
t.fuchs at wollzelle.com
Sun Jul 2 14:31:18 GMT 2006
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 at lists.rubyonrails.org [mailto:rails-
> spinoffs-bounces at lists.rubyonrails.org] On Behalf Of Hirn, Joseph
> Sent: Friday, June 30, 2006 10:34 AM
> To: rails-spinoffs at lists.rubyonrails.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 at lists.rubyonrails.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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails-spinoffs/attachments/20060702/7caa5a8c/attachment.html
More information about the Rails-spinoffs
mailing list