Topic: Update two div elements with one request

I want to update two div elements with the same update request. Is this possible?
I have tried but don't found any solution.

Please help!

Re: Update two div elements with one request

I expect it's possible, what code do you have working that updates one <div> and I'll see if I can help you

Re: Update two div elements with one request

RJS is usually the answer. You can update as many divs as you want in one request:

# code in RJS file
page[:some_div].replace_html :partial => 'some_partial'
page[:other_div].replace_html :partial => 'other_partial'

Railscasts - Free Ruby on Rails Screencasts