Using jquery pagination plugin
Posted
by
eddy
on Stack Overflow
See other posts from Stack Overflow
or by eddy
Published on 2010-12-21T01:51:08Z
Indexed on
2011/01/14
1:53 UTC
Read the original article
Hit count: 645
Hi. I want to use this plugin, but I don't know if it'll meet all of my requirements.
I know I have to use JSON to fetch the data from the server and then use it at the client side, is that right?. For now, that's fine, because I only have very few records, but when I have thousands of ; will it be convenient to bring all the data at once? What I would like to know is :
- Is there any way to query the database every time I press the number of an specific page? I ask this cause I don't think is a good idea to load all the data in one go, is it?
- I used to pass the id of the record I was going to edit like this
:
<td align="center">
<c:url value="edititem.htm" var="url">
<c:param name="id" value="${item.id}"/>
</c:url>
<a href="<c:out value="${url}"/>"><img src="images/edit.png" width="14" height="14" alt="edit"/></a>
</td>
but now I don't know not how to do it.
I really hope you can help me out.
Thanks in advance.
© Stack Overflow or respective owner