pagination in a tab

pagination in a tab

hello,
  i met a question,i hope someone can help me. the question like this,
 
   i create same tabs:
$("#tabs").tabs(
               { 
                    /
                load: function(event, ui) {
                $('a', ui.panel).click(function() {
                    $(ui.panel).load(this.href);
                    return false;
                });
                        }

             }
            );

<ul id="tabs"><li><a href="a.php?s=book">book</a></li>
</ul>

in book tab,there are some pagination, but when i firstly click page link,it can load content in book tab correctly.and secondly ,it will step out the book tab,  anyone can help me?