[jQuery] tablesorter with pager addon: Adding rows with ajax and auto-sorting

2008-09-22 Thread Jason Rice

I've been trying to get tablesorterPager working with AJAX addition of
rows. I can get the rows added, but they are always on the last page,
and are never get sorted properly. I've been trying various methods of
trying to update the caches that are held by pager and tablesorter,
but I haven't found the magic combination.

Does anyone have example code for doing this?


[jQuery] tablesorter / tablesorterPager question

2008-05-30 Thread Jason Rice

I posted this in the plugins group, but just noticed it is dead there.

I have a tablesorter.tablesorterPager table in which I need to remove
rows and have the pager updated accordingly (trying to avoid an ajax
refresh on the table).

Right now I'm removing the target row through jquery remove()
function. After which I'm triggering 'update' and 'applyWidgets'
events (I have some custom widgets for other things). My issue is that
I cannot figure out how to update the pager. If I call a redraw on
tablesorter, it redraws the entire table from the cache, undoing the
remove essentially.

I've tried a couple other things, re-applying tablesorter, which
breaks things, and a few other event triggers.

Any help is appreciated.

--Jason