Tabletools working on localhost but not on the website: bug or not?

Tabletools working on localhost but not on the website: bug or not?

roccomeoroccomeo Posts: 5Questions: 0Answers: 0
edited April 2011 in Bug reports
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]

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    You've got a number of 404 not found errors which would do it :-)

    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
  • roccomeoroccomeo Posts: 5Questions: 0Answers: 0
    In these moments the addresses mentioned are active again (no more 404s!). Sorry for the inconvenience and thank you for the support!
  • roccomeoroccomeo Posts: 5Questions: 0Answers: 0
    Maybe I did't explain so good... no more 404s but the problem on datatable persists!
  • GregPGregP Posts: 500Questions: 10Answers: 0
    edited April 2011
    Still a 404 on resources, including tabletools.js and zeroclipboard.js
  • roccomeoroccomeo Posts: 5Questions: 0Answers: 0
    Please take a look to the differences between these images: http://www.roccomeo.com/local.jpg and http://www.roccomeo.com/remote.jpg
  • GregPGregP Posts: 500Questions: 10Answers: 0
    Yes, but as I mentioned, you're getting a 404. ;-) You're not loading the tabletools.js script, so no tabletools will appear.
  • roccomeoroccomeo Posts: 5Questions: 0Answers: 0
    I finally found the problem: the case of the included js file.
    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!!!
This discussion has been closed.