render :update do |page|
page[:client_list].replace_html render(:partial => 'client_list',
:object => @clients_list)
name = page[:name].getValue();
end
but I'm not getting the value, or somehow use $("name").getValue()
inside of the controller.
You will need to send this value as a parameter of your AJAX
call, using the :with parameter of the form helper.
What I wanna do is, pass the :name.value of the search form to the
paginate action, so when the result is paginated I will still have the
same results. Otherwise, when I go the the second page for example, I
will have the second page of all my clients, not the result of the
search.
What I wanna do is, pass the :name.value of the search form to the paginate action, so when the result is paginated I will still have the same results. Otherwise, when I go the the second page for example, I will have the second page of all my clients, not the result of the search.
Since you're using observe_form, params[:name] will be set
in your controller action, which can be used in the view.
e.g. :foo => params[:name]