Spry Pagination -
12-30-2007
, 02:48 PM
I finally got to paginate the table. But now the header repeats for every row.
If I put the header before spry pagination code it does not call the xml. Any
one?
HEAD SECTION ----------------------
<script language="JavaScript" type="text/javascript">
var ClientsTableXmlFormat = new
Spry.Data.XMLDataSet("ClientsListXmlExport.php", "ClientsTable/Client");
var ClientsTableXmlFormatPaginated = new Spry.Data.PagedView(
ClientsTableXmlFormat ,{ pageSize: 4 });
</script>
BODY SECTION ----------------------
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="center">
<div spry:region="ClientsTableXmlFormatPaginated"
spry:repeatchildren="ClientsTableXmlFormatPaginate d">
<table>
<tr>
<th width="200" align="center" spry:sort="client_code">Client Code</th>
<th width="380" align="center" spry:sort="client_lastname">Full Name</th>
<th width="150" align="center" spry:sort="client_username">Username</th>
<th width="100" align="center" spry:sort="client_status">Status</th>
</tr>
<tr>
<td width="200"> {client_code}</td>
<td width="380"> {client_lastname}{client_f irstname}</td>
<td width="150"> {client_username}</td>
<td width="100" align="center">{client_status}</td>
</tr>
</table>
</div>
</td>
</tr>
</table> |