DataTables Installation

DataTables Installation

RobNHRobNH Posts: 3Questions: 1Answers: 0

I've just downloaded the latest release of the basic DataTables. I've unzipped the file and taken a look at some of the examples, but none of the examples included in the downloaded file work.

Under Manual, I see for local installation:

<link rel="stylesheet" type="text/css" href="/DataTables/datatables.css">

I do not see a DataTables directory in the DataTables-1.10.10 directory. I also don't see datatables.css or datatables.js in any of the included directories.

What am I missing here??

Answers

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin
    edited December 2015

    It sounds like you might be using Windows - is that correct? The download builder as a warning notification about using the default Windows unzip:

    Windows users: Please note that if you are using Microsoft Windows, the default unzip software will remove the main Javascript and CSS files from the zip's root directory! Please use other unzip software such as 7-Zip or WinZip to correctly unpackage the zip.

    I still don't know why the Windows default package manager strips those files out - I can only presume it is a security protection mechanism - but it doesn't seem to make any sense to strip them out at the top level and leave them everywhere else! I've not been able to get a reply from Microsoft on MSDN. If anyone reads this and has any ideas what is going on, please say!

    Allan

  • RobNHRobNH Posts: 3Questions: 1Answers: 0

    Allan,

    No, I'm using WinZip. I've tried from my computer in work as well as at home.

    -Rob

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin

    The download instructions assume that you have used the download builder to create a package for your needs. Is that the case?

    Allan

  • RobNHRobNH Posts: 3Questions: 1Answers: 0
    edited December 2015

    Yes and no. I've tried both ways. I tried the download builder - selected the options I wanted, and all that happened was changes to:


    Package results

    Include the following in your HTML to load the required Javascript and CSS for the options selected above.


    I wasn't prompted to download anything.

    I then went to http://datatables.net/download/packages and clicked on the Download link for DataTables 1.10.10. That's what I downloaded and unzipped using WinZip.

    -Rob

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin

    Include the following in your HTML to load the required Javascript and CSS for the options selected above.

    That will be the case if you don't select the local file download option. It will just give the CDN link by default - which is perhaps good enough? Depends if you want the files locally or not!

    I then went to http://datatables.net/download/packages and clicked on the Download link for DataTables 1.10.10.

    The fiel locations are slightly different in that package. Have a look in media/js and media/css for the required files.

    The download builder might be a better option though.

    Allan

This discussion has been closed.