Table tools not work for me
Table tools not work for me
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 :
[code]
$(document).ready( function () {
$('#why').dataTable( {
"sDom": 'T<"clear">lfrtip'
} );
} );
@import "core/media/css/demo_table.css";
@import "core/media/css/TableTools.css";
* {
font-family: arial;
}
[/code]
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 :
[code]
Reason For Visit
Number Of Visits
Average Student Visit Time
<?php
foreach($result as $row) {
?>
<?=$row['Reason For Visit'] ?>
<?=$row['Total Visits'] ?>
<?=$row ['Average Session Time'] ?>
<?php
}
?>
[/code]
Can any one help me please?
This is my script :
[code]
$(document).ready( function () {
$('#why').dataTable( {
"sDom": 'T<"clear">lfrtip'
} );
} );
@import "core/media/css/demo_table.css";
@import "core/media/css/TableTools.css";
* {
font-family: arial;
}
[/code]
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 :
[code]
Reason For Visit
Number Of Visits
Average Student Visit Time
<?php
foreach($result as $row) {
?>
<?=$row['Reason For Visit'] ?>
<?=$row['Total Visits'] ?>
<?=$row ['Average Session Time'] ?>
<?php
}
?>
[/code]
Can any one help me please?
This discussion has been closed.
Replies
2. Please link to a test case: http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read
Allan
Sorry about the here you go.
I am using php in the foreach to populate my rows.
THe PHP code is in the OP.
Firebug:
http://michaelsync.net/2007/09/08/firebug-tutorial-overview-of-firebug
http://css-tricks.com/video-screencasts/15-introduction-to-firebug/
Chrome Dev tools are superb - google for tutorials on them as well.
Allan
Allan