Have you looked at Comet? http://en.wikipedia.org/wiki/Comet_(programming)
Do a quick search for Comet and Ruby - a few of the results point to Juggernaut, a Rails plugin that implements Comet: 1. http://ajaxian.com/archives/juggernaut-comet-for-rails 2. http://dineshakadinks.blogspot.com/2008/03/comet-ruby-on-rails.html Good luck. Summarize back what you find if you get a chance. -- Bosco On Jan 24, 9:53 am, jayhalleaux <[email protected]> wrote: > I am trying to make a multi-user DB application. My question is how > do I keep the multiple users' browser view in sync when a user updates > the database? I want to avoid polling the server client-side to see > if it has been updated. Is there any way the server can push a > notification to all the other clients that the database has been > updated and that it needs to refresh the data (I refresh will be done > via AJAX so I can avoid a hard refresh). > > My problem: > User A logs in and viewing table A. > User B logs in and viewing table A. > User C logs in and viewing table B. > > User A updates table A. > User B viewing old table A. > User C still viewing table B. > > Solution I want: > User A updates table A. > User B viewing updated table A. (push notification received and table > is updated) > User C still viewing table B. (push notification ignored) > > Any help would be appreciated. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

