i want to do paging with ajax

i am using link_to_remote file and than include partial
for ex.
           items/index.html.erb
                    
<%link_to_remote('items',update=>'cont',:url=>{:action=>:list})%>
list.html.erb this is also in items folder
list.html.erb
      <div id ='cont'><%= render :partial => 'list'%></div>
items/_list.html.erb
           in this all display record logic
in controler
           def list
    @items = Item.paginate(:page => params[:page], :per_page => 2)
  respond_to do |format|
     format.html
   format.xml
     format.js {
       render :update do |page|
       page.replace_html 'mcont', :partial => 'list'
  end
    }
   end
  end

i can not redirect this way without link_to_remote this is possible
if any idea about it please give me
Thanks
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to