Hello all, I finally got table tools to "work" on my application but I am having a couple problems. And first place I thought to com was here in hopes that my problems can be mediated.
This is my script :
I am using the examples to use a basic installation (that is all I need atm) however, I am having troubles with this.
First problem : Only the print button works.
Second problem the look of the table is no where near how the example looks.
example: http://datatables.net/release-datatables/extras/TableTools/
my table : http://img811.imageshack.us/img811/8810/selection001k.png
The code to my table (html and php) is like so :
This is my script :
<head> <script src="core/media/js/jquery.js" type="text/javascript"></script> <script src="core/media/js/jquery.dataTables.js" type="text/javascript"></script> <script src="core/media/js/ZeroClipboard.js"></script> <script src="core/media/js/TableTools.js"></script> <script type="text/javascript" charset="utf-8"> $(document).ready( function () { $('#why').dataTable( { "sDom": 'T<"clear">lfrtip' } ); } ); </script> <style type="text/css"> @import "core/media/css/demo_table.css"; @import "core/media/css/TableTools.css"; </style> <style> * { font-family: arial; } </style>
I am using the examples to use a basic installation (that is all I need atm) however, I am having troubles with this.
First problem : Only the print button works.
Second problem the look of the table is no where near how the example looks.
example: http://datatables.net/release-datatables/extras/TableTools/
my table : http://img811.imageshack.us/img811/8810/selection001k.png
The code to my table (html and php) is like so :
<table id='why' class='reports'> <thead> <tr> <th>Reason For Visit</th> <th>Number Of Visits</th> <th>Average Student Visit Time</th> </tr> </thead> <tbody> <?php foreach($result as $row) { ?> <tr> <td><?=$row['Reason For Visit'] ?></td> <td><?=$row['Total Visits'] ?></td> <td><?=$row ['Average Session Time'] ?></td> </tr> <?php } ?> </tbody> </table>Can any one help me please?