Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table id='ejemplo1' class='table table-bordered table-striped'>
- <thead>
- <tr>
- <th>Resistencia</th>
- <th>M3</th>
- <th>Tiro</th>
- <th>Precio unitario</th>
- <th>Costo total</th>
- </tr>
- </thead>
- <tbody id="content">
- </tbody>
- <tfoot>
- <tr>
- <th>Resistencia</th>
- <th>M3</th>
- <th>Tiro</th>
- <th>Precio unitario</th>
- <th>Costo total</th>
- </tr>
- </tfoot>
- </table>
- <script>
- $(document).ready(function() {
- $(function () {
- $("#ejemplo1").DataTable({
- "ajax": "pruebas/ajax-grid-data.php"
- } );
- });
- });
- </script>
- <script>
- function refresh_table() {
- $("#ejemplo1").DataTable({
- "ajax": "pruebas/ajax-grid-data.php"
- } );
- }
- $(document).ready(function() {
- t = setInterval(refresh_table,1000);
- });
- </script>
Add Comment
Please, Sign In to add comment