and so on. Which strategy should I use? I have tried to use multiple
render :update do |page| ... end, but this is not allowed (OK,
obviously). And somthing like:
did not work because both messages are sent back at the same time(?). So
what could I do to update the browser's text? I know of
periodically_call_remote, but that way I'd have to remember the state on
the server side, right?
and so on. Which strategy should I use? I have tried to use multiple
render :update do |page| ... end, but this is not allowed (OK,
obviously). And somthing like:
did not work because both messages are sent back at the same time(?). So
what could I do to update the browser's text? I know of
periodically_call_remote, but that way I'd have to remember the state on
the server side, right?
thanks for the keywords, somehow these didn't come into my mind. I have
not implemented anything yet, but this will guide me in the right
direction. Thans again!
You might want to check out the juggernaut gem and associated plugin.
In short, it sticks a little flash app into your page which ultimately
allows you to _push_ from the webserver to the client browser. There
are various options for identifying clients and channels so the
messages you push can be as broad or restricted as you like.
Typically you end up pushing javascript to the client to update the
state of the page.