Coordinating multiple instances?
| Project: | Pagination |
| Version: | 1.1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Including pagination at the top and bottom of a list works great $('div.paging').pagination(...) -- except that an event from one instance is not propagated to the other. (So one instance will show page 3 and the other will still indicate page 1.) I realize this is perhaps an unusual condition, but for longer lists, the duplication at the top and bottom of the page is nice. Is there a workaround? (one option: maybe manually redrawing the other control in the callback? drawLinks() - although i'm not sure how to find the instance again...)

Comments
#1
I had the exact same issue.
The fix, nicely provided by mconway at www.jqueryhelp.com, was simple.
Change
var panel = jQuery(this);
to
var panel = jQuery('.pagination');
here is the full thread
http://www.jqueryhelp.com/viewtopic.php?t=240&sid=780d9c6729fa0292792e89...