On 10 Feb 2010, at 17:18, Marnen Laibow-Koser wrote:

Does anyone know if it's possible to do multiple AJAX responses to a
single request in Rails? I did some googling but didn't find anything
extremely helpful.

What do you mean?  One HTTP request gets one response.  That's the way
the protocol works

Indeed, every HTTP request only yields one response. What you are looking for is a PeriodicalExecuter or PeriodicalUpdater (javascript polling every xx seconds). Another way to go is a push notification system, which is more difficult to implement and host (forget about hosting it on a shared host). Juggernaut or Comet should help you out there. But unless you really know what you are doing, the periodical execution way is going to give you the least amount of problems.


Best regards

Peter De Berdt

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" 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-talk?hl=en.

Reply via email to