ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Ajax on Rails
Subject:   still confused
Date:   2005-09-19 11:51:13
From:   curth
Response to: still confused

It does still involve a server round trip. That why it can't match the responsiveness of a desktop app, but it can be much better than without.


In the most common case, data collected in a form is sent to the server, but it doesn't have to be form data.


Its also possible to send and receive pure data data and transform the received data on the client side to HTML (or DOM updates). This can wring out the maximum amount of responsive. But the cost is extensive, custom, client-side javascript. A lot of work.


This might be justified in some cases, but the built in Rails Ajax support is designed to hit the sweet spot of the common cases and requires very little effort to get there.