[Proto-Scripty] Progressive update messages from single request

2009-12-09 Thread joe t.
i think i've seen examples of this, but can't recall where, and could use some guidance. Obviously it's easy to handle a 1:1 Request/Response How can i do a true 1:many process? For instance: Client takes a single action which requires the server to perform 3 tasks: * Query database * Generate

Re: [Proto-Scripty] Progressive update messages from single request

2009-12-09 Thread Walter Lee Davis
I would do this with chained onSuccess handlers. Each one would trigger a new request to a different endpoint, carrying some token to identify the visitor. $('button').observe('click',function(evt){ //do your lookup new Ajax.Request('lookup.php',{