DataTables TableTools plugin - How to configure sSwfPath path in Codeigniter ?
DataTables TableTools plugin - How to configure sSwfPath path in Codeigniter ?
NealCaffrey
Posts: 1Questions: 0Answers: 0
Hi I have given my code in JSBin http://live.datatables.net/aqowib/2 for which I am not able to link to the sSwfPath properly. I am using codeiginter in my application so I am trying to load the files as follows:
[code]
[/code]
And my script tag contains the following code:
[code]
$(document).ready(function(){
var oTable = $('#datatables').dataTable({
"sPaginationType":"full_numbers",
"sDom": 'Tlfrtip',
"oTableTools": {
"sSwfPath": "<?php base_url();?>/media/swf/copy_cvs_xls_pdf.swf"
},
"sScrollX": "100%",
"bScrollCollapse": true,
"bAutoWidth": true,
"aaSorting":[[0, "asc"]],
"bJQueryUI":true
}).columnFilter({
aoColumns: [ null,
null,
{ type: "select", values: [ 'male', 'female'] },
null,
null,
null,
null,
{ type: "select", values: [ '1', '2', '3', '4', '5', '6', '7','8','9','10'] },
{ type: "select", values: [ 'A', 'B', 'C'] },
null,
{ type: "select", values: ['P', 'A'] },
null,
null,
null
]
});
});
[/code]
Everytime I am getting the 404 error saying that [quote] Unable to load SWF file - please check the SWF path[/quote]
Please help me where am I wrong ?
Thanks in advance.
[code]
[/code]
And my script tag contains the following code:
[code]
$(document).ready(function(){
var oTable = $('#datatables').dataTable({
"sPaginationType":"full_numbers",
"sDom": 'Tlfrtip',
"oTableTools": {
"sSwfPath": "<?php base_url();?>/media/swf/copy_cvs_xls_pdf.swf"
},
"sScrollX": "100%",
"bScrollCollapse": true,
"bAutoWidth": true,
"aaSorting":[[0, "asc"]],
"bJQueryUI":true
}).columnFilter({
aoColumns: [ null,
null,
{ type: "select", values: [ 'male', 'female'] },
null,
null,
null,
null,
{ type: "select", values: [ '1', '2', '3', '4', '5', '6', '7','8','9','10'] },
{ type: "select", values: [ 'A', 'B', 'C'] },
null,
{ type: "select", values: ['P', 'A'] },
null,
null,
null
]
});
});
[/code]
Everytime I am getting the 404 error saying that [quote] Unable to load SWF file - please check the SWF path[/quote]
Please help me where am I wrong ?
Thanks in advance.
This discussion has been closed.
Replies
Please link to a test page: http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read
Allan