Paginación de tablas


/ Published in: JavaScript
Save to your folder(s)

libreria que mediante ajax y javascript permite paginar los contenidos de una tabla


Copy this code and paste it in your HTML
  1. <html>
  2. <head>
  3. <link rel="stylesheet" href="http://acctable.lostsys.com/accDataGrid/accDataGrid1.css" type="text/css" />
  4. <script type="text/javascript" src="http://acctable.lostsys.com/accDataGrid/accAjax.js"></script>
  5. <script type="text/javascript" src="http://acctable.lostsys.com/accDataGrid/accDataGrid1.js"></script>
  6. </head>
  7. <body>
  8. <table cellspacing=0 class="llistaDades" id="taulaDades"></table>
  9. <script>
  10. var ldades=document.getElementById("taulaDades");
  11.  
  12. accDataGrid( ldades );
  13.  
  14. ldades.regByPag=10;
  15. ldades.minRegByPag=5;
  16. ldades.maxRegByPag=20;
  17. ldades.stepRegByPag=5;
  18.  
  19. ldades.urlData="./data.php";
  20. ldades.refresh();
  21. </script>
  22. <body>
  23. </html>

URL: http://acctable.lostsys.com/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.