patrick
unread,Oct 30, 2009, 12:33:51 PM10/30/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Prototype & script.aculo.us
Hi,
So, if I have a controller action with an rjs template that does
page.replace_html on several different elements, how can I accomplish
this same update of multiple elements in my regular js functions?
For example, I have a controller: and in it I do:
def some_action
render :partial => 'some_path/blah'
end
... Then in my js code, I do:
$('my_form').request({onComplete:
function(r) {
$('some_div').update(r.responseText);
}
});
But how could I do the same thing but update 3 or 4 divs with
different partials?
Is rjs really the best way to deal with this sort of thing?
-patrick