Issue with this code ( dataTables )
Issue with this code ( dataTables )
422
Posts: 7Questions: 0Answers: 0
I am using this code, and it just isnt working.
[code]
$(document).ready( function () {
$('#inspections').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "tools/swf/copy_cvs_xls_pdf.swf",
"aButtons": [
"print",
{
"sExtends": "collection",
"sButtonText": "Save",
"aButtons": [
"csv",
"xls",
{
"sExtends": "pdf",
"sPdfOrientation": "portrait",
"sPdfMessage": "Stat Report"
}
]
}
]
}
} );
} );
[/code]
I was using:
[code]
$(document).ready( function () {
$('#inspections').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "tools/swf/copy_cvs_xls_pdf.swf"
}
} );
} );
[/code]
Issue I have is I only want:
Print , Xls , PDF .
I also want a title on the PDF to dispaly.
But not getting anywhere.
Any help appreciated. Cheers
[code]
$(document).ready( function () {
$('#inspections').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "tools/swf/copy_cvs_xls_pdf.swf",
"aButtons": [
"print",
{
"sExtends": "collection",
"sButtonText": "Save",
"aButtons": [
"csv",
"xls",
{
"sExtends": "pdf",
"sPdfOrientation": "portrait",
"sPdfMessage": "Stat Report"
}
]
}
]
}
} );
} );
[/code]
I was using:
[code]
$(document).ready( function () {
$('#inspections').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "tools/swf/copy_cvs_xls_pdf.swf"
}
} );
} );
[/code]
Issue I have is I only want:
Print , Xls , PDF .
I also want a title on the PDF to dispaly.
But not getting anywhere.
Any help appreciated. Cheers
This discussion has been closed.
Replies
We click Save.
Screen dims,
dropdown menu appears.
We click PDF
Computers Save Window opens, and freezes.
Have tested on 3 PC's in our office, and we have ADSL2+
So am figuring its an issue with our code.
Cheers