Open ranonengineer opened 4 years ago
Debugged enabled
Interesting... "size" selector not found.
Hi @ranonengineer!
Yes, it looks like the HTML is missing. There is an example in the docs - https://mottie.github.io/tablesorter/docs/example-pager-ajax.html
Good morning @Mottie!
I'm not sure what part I'm missing after I compared the differences between the example and my code. I do see cssPageSize in the example and I don't think that's required... is it?
HTML section:
<table id="itemTable" class="tablesorter">
<thead>
<tr>
<td>Date</td>
<td>Event</td>
<td class="sorter-false">Item</td>
<td>Looter</td>
<td class="sorter-false">Cost</td>
</tr>
</thead>
<tfoot>
<tr>
<th>Date</th>
<th>Event</th>
<th>Item</th>
<th>Looter</th>
<th>Cost</th>
</tr>
<tr>
<td colspan="5">
<div id="itemPager" class="pager">
<nav class="right">
<span class="prev">
<img src="images/pager/icons/prev.png" /> Prev
</span>
<span class="pagecount"></span>
<span class="next">Next
<img src="images/pager/icons/next.png" />
</span>
</nav>
</div>
</td>
</tr>
</tfoot>
<tbody>
<?php
if($srItemCount > 0){
//ajax call will fill success result here
}else{
echo $sql_dbrpp->error;
echo "<h3 style='margin-top:2rem;margin-bottom:0;'>No Item Results</h3>";
echo "<p style='margin-top:0;' class='section-description'>Go ahead and type to search for the item from events!</p>";
}
?>
</tbody>
</table>
jQuery Version: 1.12.4 tablesorter Version: 2.31.3
I've looked around through different forums about this specific issue: pagination size did not assign properly after ajax call is completed.
Here's the JS references:
Here's the piece of code:
As you see, I've requested a limit of rows to 25 per page. It's not working. Am I missing something? Thanks in advance!