Tabletools working on localhost but not on the website: bug or not?
Tabletools working on localhost but not on the website: bug or not?
roccomeo
Posts: 5Questions: 0Answers: 0
Hello, first of all I would like to congratulate the developers of of this project for the fantastic job.
I have a very strange problem... Actually I'm still not able to understand if it is a bug or not.
I created a test page with datatables and tabletools perfectly working on localhost (http://roccospc.homedns.org/elezioni2011 , not always online) but when I transferred it to the webserver hosting my site the tabletools buttons (just the buttons, the datatable perfectly works) have suddenly disappeared!!! The page I'm dealing with is http://www.roccomeo.com/elezioni2011 (hosted by tophost.it). Analyzing the source, the code is exactly the same so I'm getting crazy trying to realize the reason!!!
Thank you so much in advance if you would like to spend 5 minutes of your time trying to help me!!!
The following code is included in my page tag:
[code]
$(document).ready(function() {
$('#table01').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "swf/copy_cvs_xls_pdf.swf",
"aButtons": [
{
"sExtends": "copy",
"sButtonText": "Copia"
},
{
"sExtends": "pdf",
"sButtonText": "pdf",
"sPdfOrientation": "landscape", /* ovviamente l'alternativa e' portrait */
"sPdfMessage": "(C) Copyright 2011 Rocco Meo. Tutti i diritti sono riservati."
}
]
/* altri sExtends sono "csv", "xls" e "print" */
},
"iDisplayLength": 25,
"bPaginate": true,
"aLengthMenu": [[25,50,100,-1], [25,50,100,"Tutti"]],
"sPaginationType": "full_numbers",
"bLengthChange": true,
"bFilter": true,
"bSort": true,
"bInfo": true,
"bAutoWidth": true,
"oLanguage": {
"sUrl": "it_IT.txt"
},
} );
} );
[/code]
I have a very strange problem... Actually I'm still not able to understand if it is a bug or not.
I created a test page with datatables and tabletools perfectly working on localhost (http://roccospc.homedns.org/elezioni2011 , not always online) but when I transferred it to the webserver hosting my site the tabletools buttons (just the buttons, the datatable perfectly works) have suddenly disappeared!!! The page I'm dealing with is http://www.roccomeo.com/elezioni2011 (hosted by tophost.it). Analyzing the source, the code is exactly the same so I'm getting crazy trying to realize the reason!!!
Thank you so much in advance if you would like to spend 5 minutes of your time trying to help me!!!
The following code is included in my page tag:
[code]
$(document).ready(function() {
$('#table01').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "swf/copy_cvs_xls_pdf.swf",
"aButtons": [
{
"sExtends": "copy",
"sButtonText": "Copia"
},
{
"sExtends": "pdf",
"sButtonText": "pdf",
"sPdfOrientation": "landscape", /* ovviamente l'alternativa e' portrait */
"sPdfMessage": "(C) Copyright 2011 Rocco Meo. Tutti i diritti sono riservati."
}
]
/* altri sExtends sono "csv", "xls" e "print" */
},
"iDisplayLength": 25,
"bPaginate": true,
"aLengthMenu": [[25,50,100,-1], [25,50,100,"Tutti"]],
"sPaginationType": "full_numbers",
"bLengthChange": true,
"bFilter": true,
"bSort": true,
"bInfo": true,
"bAutoWidth": true,
"oLanguage": {
"sUrl": "it_IT.txt"
},
} );
} );
[/code]
This discussion has been closed.
Replies
tabletools.js - Failed to load resource: the server responded with a status of 404 (Not Found)
tabletools.css - Failed to load resource: the server responded with a status of 404 (Not Found)
zeroclipboard.js - Failed to load resource: the server responded with a status of 404 (Not Found)
favicon.ico - Failed to load resource: the server responded with a status of 404 (Not Found)
Allan
Thank you so much infinitely because I shouldn't have been able to solve it without you.
I'm going to make a donation for this amazing job and for the disposability of the developers in the support forum!!!