Download of latest version via CDN does not work properly?

Download of latest version via CDN does not work properly?

sgustafssonsgustafsson Posts: 34Questions: 7Answers: 0

Using the Download Builder, I get a 404 error when adding jquery 3 to the download.

Working link: https://cdn.datatables.net/v/dt/dt-1.13.5/datatables.min.js
Non-working link (404): https://cdn.datatables.net/v/dt/jq-3.7.0/dt-1.13.5/datatables.min.js

Manually modifying the link to

https://cdn.datatables.net/v/dt/jq-3.6.0/dt-1.13.5/datatables.min.js

works, but I am not sure if DT 1.13.5 is supposed to be used with jqeury 3.6.0

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,512Questions: 1Answers: 10,472 Site admin
    Answer ✓

    Argh - sorry about that. I forgot to copy jQuery 3.7 to the CDN files. Fixed now!

    DataTables will work just fine with jQuery 3.6.0, and in fact all the way back to 1.7 :).

    Allan

  • hamlet1964hamlet1964 Posts: 43Questions: 8Answers: 1

    Fyi, the following links that I just generated are still throwing 404 errors.

    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/jq-3.7.0/moment-2.29.4/jszip-2.5.0/pdfmake-0.2.7/dt-1.13.5/af-2.6.0/b-2.4.0/b-colvis-2.4.0/b-html5-2.4.0/b-print-2.4.0/cr-1.7.0/date-1.5.0/fc-4.3.0/fh-3.4.0/kt-2.10.0/r-2.5.0/rg-1.4.0/rr-1.4.0/sc-2.2.0/sb-1.5.0/sp-2.2.0/sl-1.7.0/sr-1.3.0/datatables.min.css">
    
    <script type="text/javascript" charset="utf-8" src="https://cdn.datatables.net/v/dt/jq-3.7.0/moment-2.29.4/jszip-2.5.0/pdfmake-0.2.7/dt-1.13.5/af-2.6.0/b-2.4.0/b-colvis-2.4.0/b-html5-2.4.0/b-print-2.4.0/cr-1.7.0/date-1.5.0/fc-4.3.0/fh-3.4.0/kt-2.10.0/r-2.5.0/rg-1.4.0/rr-1.4.0/sc-2.2.0/sb-1.5.0/sp-2.2.0/sl-1.7.0/sr-1.3.0/datatables.min.js"></script>
    

    thanks for anything you can do to resolve!

  • allanallan Posts: 63,512Questions: 1Answers: 10,472 Site admin

    We don't host pdfmake in the built files any more - it's simply too big and uses too much bandwidth! Without the pdfmake-0.2.7/ part of the URL it will load okay. For pdfmake on a CDN, you could get it from here.

    Allan

  • hamlet1964hamlet1964 Posts: 43Questions: 8Answers: 1

    Great - thanks! Since this came from your Generator, you might want to remedy in that program?

  • allanallan Posts: 63,512Questions: 1Answers: 10,472 Site admin

    Your right, I do! Thanks for flagging it up!!

    Allan

Sign In or Register to comment.