Hello people, I''m implementing the will_paginate plugin with ajax links on my site ( http://weblog.redlinesoftware.com/2008/1/30/willpaginate-and-remote-links ). Everything works ver well except my page number links that are not being updated. For example, when clicking on page ''3'', the latter remains clickable. Also I would like to customize the page number links to image buttons, but I''m not finding the way to do that. Has anyone came accross the same problem or has an idea on how I can achieve this. Regards, Joel --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
You can find the customization of will_paginate links here http://nasir.wordpress.com/2008/04/16/formattingstyling-will_paginate On May 4, 3:38 pm, joel <joel.soor...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello people, > > I''m implementing the will_paginate plugin with ajax links on my site > (http://weblog.redlinesoftware.com/2008/1/30/willpaginate-and-remote-l... > ). Everything works ver well except my page number links that are not > being updated. For example, when clicking on page ''3'', the latter > remains clickable. Also I would like to customize the page number > links to image buttons, but I''m not finding the way to do that. > Has anyone came accross the same problem or has an idea on how I can > achieve this. > > Regards, > > Joel--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
will_paginate checks to see what the current page is to disable the link to it, so if you''re not reloading the div with the will_paginate code in it, the links won''t be updated. You''ll need to tell your action to update the will_paginate portion of your view as well as the div that contains your paginated records. -Kyle On May 4, 9:38 am, joel <joel.soor...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello people, > > I''m implementing the will_paginate plugin with ajax links on my site > (http://weblog.redlinesoftware.com/2008/1/30/willpaginate-and-remote-l... > ). Everything works ver well except my page number links that are not > being updated. For example, when clicking on page ''3'', the latter > remains clickable. Also I would like to customize the page number > links to image buttons, but I''m not finding the way to do that. > Has anyone came accross the same problem or has an idea on how I can > achieve this. > > Regards, > > Joel--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---