Forum: Ruby on Rails Problem with adding entries to a guest book using ajax

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.
F639e0cdf2fa098b535d6ec766b2aee1?d=identicon&s=25 Szymon Nowak (g0nzo)
on 2006-05-10 13:20
Hi!

I've got the following problem:

When user successfully adds new entry to the guest book i'd like to
highlight it (so i need to update a div and run highlight effect on it)
and i'd like also to swap entry form with some info (another update).

When the validation fails i'd like to display errors above the form
(only one update,but different then the others).

How to do it? Doing one of these things at a time is simple, but i don't
know how to combine them.

Thanks in advance
This topic is locked and can not be replied to.