RJS (Ruby Java Script) — a straightforward technique when server side (e.g.
Getting Your Rails Project into Subversion Control Text Flow with Text Elements Changing What Is Already Stored17.7. Specifically, you have an application that lets you track and add new tasks.
HTTP Pipeline Dynamic Update: DHCP and Journal Files Section 20.7. When a new task is added, you want to be able to update the task list, as well as several other elements of the page, with a single request.
In Rails, you’d have a partial like messages/message that’s used for both cases.
If you only returned , you’d have to implement your templates for showing that message twice (once for first-response on the server, once for subsequent-updates on the client) — unless you’re doing a single-page Java Script app where even the first response is done with /client-side generation.