Forum: Ruby on Rails Ajax: update multiple DIV's

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
zven (Guest)
on 2006-06-02 20:15
(Received via mailing list)

Is it possible to update multiple DIVs during? For example I have DIV
for @flash[:notice], and one for content and I need to render both DIVs
after executing action.
Dave T. (Guest)
on 2006-06-03 21:05
(Received via mailing list)
If I understand your question correctly, RJS will make this a snap.  The
new RJS is wickedly cool - give it a whirl.  Here's some docs:

Here's some code I wrote recently for my new Mac Password Manager:

    render :update do |page|
      if saved
        page.hide "form"
        page.replace_html "status", 'Thank you! Your message has been
        page.replace_html "status", 'Please enter the message.'

You can do all sorts of cool things with that "page" object, including
visual effects a-la  See
GeneratorMethods.html for details.


On Friday, June 02, 2006, at 10:15 PM, zven wrote:
--Dave T. - Password Manager + AutoFill for Mac OS X - Email list management - Apps for your hand-held
This topic is locked and can not be replied to.