Before using Ajax, I used this script to run both plugins together:
<script type="text/javascript">
$(document).ready(function () {
$("#myTable")
.tablesorter()
.tablesorterPager({ container: $("#pager") });
$("#btnFilter").click(function (event) {
$("#filter").toggle("slow");
});
});
</script>
My problem comes when I try to put both table and pager in an update panel. I followed your example and even others I found on the net, to make jQuery work in an Ajax UpdatePanel. This is the script code I am sticking to now:
<body>
<form>
<script language="javascript" type="text/javascript">
function pageLoad() {
$(function () {
$("#pager").unbind();
$("#myTable")
.tablesorter()
.tablesorterPager({ container: $("#pager") });
$("#btnFilter").click(function (event) {
$("#filter").toggle("slow");
});
});
}
</script>
This does not change anything for me. Ajax does partial postback on the first time but then it stops.
On the other hand If I just remove this line from the above code:
.tablesorterPager({ container: $("#pager") });
Everything works perfect! And here I am totally lost and I wish you could give me some quick tips to move on.
One more thing, I am using a MasterPage and all the above is in a Child Page.
Thank you!

New Topic/Question
Reply




MultiQuote




|