DataTables stopped working on my localhost

DataTables stopped working on my localhost

budapest14budapest14 Posts: 3Questions: 2Answers: 0

Link to test: http://live.datatables.net/jidewuwu/3/edit
**Debugger code (debug.datatables.net)
: DevTools failed to load SourceMap: Could not load content for https://debug.datatables.net/dist/css/maps/debug.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
Error messages shown:
Description of problem: My dataTables table worked like the zero configuration example , but one day I opened my website that I am working on my localhost and I could not find the reason why the table is now working like dataTables anymore. I tought the problem is in the links to datatables(version 1.10.21 is in my link) current version is 1.10.22 so I changed that and its still not working.

Answers

  • kthorngrenkthorngren Posts: 21,161Questions: 26Answers: 4,921

    jquery.js is required for datatables.js to load. Move this line:

    <script src="https://cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js"></script> 
    

    After you load jquery.js.

    Kevin

  • budapest14budapest14 Posts: 3Questions: 2Answers: 0

    thanks i solved it by including the js file at the right line and from my folder without cdn

This discussion has been closed.