Forum: Ruby on Rails Help with ajax and form submission

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Phil Craven (Guest)
on 2006-02-01 18:31
While working on a new application, a friend and I ran into a problem
with using ajax.  Users are used to being able to modify the contents of
a screen until they are finished and then saving (committing).  There
does not seem to be a way to do this with ajax, since you have to modify
the model whenever you call back to the server. The half baked solution
that we came up with is to create a copy of the
child collections and the parent in the session, and modify them.  Once
the user submits, everything is then taken from the session and
committed. Is there a better way to allow for this kind of functionality
and use ajax?
Alex Y. (Guest)
on 2006-02-01 19:03
(Received via mailing list)
Phil Craven wrote:
> While working on a new application, a friend and I ran into a problem
> with using ajax.  Users are used to being able to modify the contents of
> a screen until they are finished and then saving (committing).  There
> does not seem to be a way to do this with ajax, since you have to modify
> the model whenever you call back to the server.
So why use AJAX?  If there's no benefit in the round trip, why bother
breaking the metaphor?

The flip side of that argument is quite well thought through here:
   http://www.baekdal.com/articles/usability/usable-X...

In the end, it all devolves down to how you present the UI, not the
technology behind it.
This topic is locked and can not be replied to.