-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jimbo wrote:
> I've made a little change to our version of prototype ( half a dozen
> lines or so ) which, if you give the parameter "override:true" to
> Ajax.Updater() it will record the stack of requests going to each
> target.
> That way, if there are two or more concurrent requests who's content
> will eventually end up in the same place only the last one gets
> executed.
Seeing some code would have been nice. :(

IMHO, there's no need for such an "override" parameter. Better yet, simply
twist Ajax.Updater to behave like this. Anyway, you'll have to be pretty
careful when deciding if an "older" request has been already triggered, and
I specifically mean to mind about the "insertion" parameter.
A simple rule would be: "there is no such thing as <<older>> request if
<<insertion>> is <<true>>", but that again is wrong if you think about it,
because order matters when doing insertions.

> What this _doesn't_ do is actually cancel the requests.. ( I don't
> know how best to do that! )
Agreed, we currently don't have a fancy "abort()" method. IIRC there was
some discussion about this right on this list (or maybe on our tracker?)

> Anyhow - just wondering if this sort of thing is worthwhile enough to
> comit back into the cvs?? Would anyone find this useful, is it the
> right sort of thing to commit?
Useful? Yes, could be. But let's discuss a little bit about it, to find the
best/safest way of implementing it, in order not to get things even worse as
they are right now ;-)

cheers
- --
Marius Feraru
-----BEGIN PGP SIGNATURE-----

iD8DBQFFwdudtZHp/AYZiNkRAuZHAKDunS645uJi2y9Hs9zd1LudehhGQgCeIPtl
6fsVk1uw/TWSvicLWafmXJ0=
=aOm3
-----END PGP SIGNATURE-----

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to