Thursday, October 20, 2011

[Rails] Re: will_paginate and checkboxes

On Oct 19, 2:22 pm, mdfdroid <mdfdr...@gmail.com> wrote:
> Ok so I solved my problem by creating two  divs on the page.  A table
> on the left that is paginated and has ajax search for assigning
> issues.  Then another table on the right that just shows assigned
> issues.  I have jquery watch for check box clicks and submit the
> form.  The form is submitted remotely and just re renders the two
> divs.   This way you can add issues by selecting them on the right, or
> remove them by unchecking them on the right.

I had a similar problem with radio buttons and pagination. I used
jquery.dataTables to solve the problem.
With dataTables, you do not need will_paginate. The dataTable widget
handles all the pagination client side.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate