Deciphering auto-generated link & script info when updating to current versions

Deciphering auto-generated link & script info when updating to current versions

Boilermaker80Boilermaker80 Posts: 19Questions: 6Answers: 0

I used DataTables in a project I developed a year ago, and never updated to a later version. I recently noticed one of the images jQuery is trying to load from CDN is no longer available, and decided to update to current versions to fix it.

Unfortunately I didn't keep a record of the selections I made while using the DataTables download page to auto-generate HTML for loading css and script files. Some parts are obvious, such as jQuery-UI and jQuery, but not all are. Can someone help me decipher the elements of the HTML below so I can reproduce it on the Download page?

Thanks!

The original HTML is below:

<link rel='stylesheet' type='text/css' href='https://cdn.datatables.net/v/ju-1.12.1/jq-3.3.1/dt-1.10.18/b-1.5.4/b-html5-1.5.4/b-print-1.5.4/cr-1.5.0/sl-1.2.6/datatables.min.css'/>

<script type='text/javascript' src='https://cdn.datatables.net/v/ju-1.12.1/jq-3.3.1/dt-1.10.18/b-1.5.4/b-html5-1.5.4/b-print-1.5.4/cr-1.5.0/sl-1.2.6/datatables.min.js'

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,166Questions: 26Answers: 4,921
    edited October 2019 Answer ✓

    Open the CSS and JS links and they will list all the options in the file, for example from your CSS link:

    * To rebuild or modify this file with the latest versions of the included
     * software please visit:
     *   https://datatables.net/download/#ju-1.12.1/jq-3.3.1/dt-1.10.18/b-1.5.4/b-html5-1.5.4/b-print-1.5.4/cr-1.5.0/sl-1.2.6
     *
     * Included libraries:
     *  jQuery 3.3.1, jQueryUI 1.12.1, DataTables 1.10.18, Buttons 1.5.4, HTML5 export 1.5.4, Print view 1.5.4, ColReorder 1.5.0, Select 1.2.6
     */
    

    You can also open the link to go directly to the download page.

    Kevin

  • Boilermaker80Boilermaker80 Posts: 19Questions: 6Answers: 0

    Very cool... that's exactly what I needed. I don't understand the distinction you're making between opening the CSS and JS links and "opening the link to go directly to the download page" though.

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    between opening the CSS and JS links and "opening the link to go directly to the download page" though

    The format shows the header that Kevin quoted above, and this lists the "Included libraries" there.

    The latter, the link, takes you to the download page where you can see what's been selected.

    Hope that clarifies.

    C

This discussion has been closed.