I delved into the pager code which is clear and highly readable and
probably should have been my first and last resort after not being
able to see a solution online.

Anyway

                                        $(config.cssFirst,pager).unbind();
                                        $(config.cssNext,pager).unbind();
                                        $(config.cssPrev,pager).unbind();
                                        $(config.cssLast,pager).unbind();

in the this.construct section of pager should do the trick. Just
unbind all the events. Or do it recursively in the callback from your
form plugin (my lack of jQfu did not allow for that but i know it has
to be a possibility)

Enjoy


On Jun 10, 12:00 pm, whistlerny <[EMAIL PROTECTED]> wrote:
> Hi, I'm using the form plugin to allow users to select a few search
> criteria, my app spits back new table rows which are 
> inserted.Tablesorterhandles this perfectly (with or without calling the update
> function mind you). My problem is thepagerplugin. I've chained on
> thepager, as you can see below in the trigger_update function.
>
> This causes the Prev/Next arrows to skip TWO pages instead of one. If
> I perform another search, then I jump forward or back THREE pages
> instead of one. It seems clear that a variable is incrementing that
> shouldn't be.
>
> Anyone have suggestions?
>
>         <script type="text/javascript">
>           $(document).ready(function(){
>                 var options = {
>                     target: '#results',
>                         success: trigger_update
>                 };
>                 $('#search_form').ajaxForm(options);
>         $("#results_table").tablesorter({widgets:
> ['zebra']}).tablesorterPager({container: $("#pager")});
>           });
>           function trigger_update() {
>                 
> $("#results_table").trigger("update").tablesorterPager({container: $
> ("#pager")});
>           }
>         </script>

Reply via email to