Simple question on getting started about the 'Core' files

Simple question on getting started about the 'Core' files

dmartinez01dmartinez01 Posts: 6Questions: 0Answers: 0
edited October 2012 in General
Simple newbie question... I downloaded DataTables 1.9.3. In copying them into the structure of our website, we have the following subdirectors:
/include/ (for the css files)
/javascript/ (for the .js files)
/jsp2/ (for the actual pages)
/images/ (for images

So I took the DataTables javascript files under /media/js/ and copied them under /javascript
I took the DataTables css files under /media/css and copied them under /include/
I took the images from DataTables /media/images/ and copied them under /images/

It's been up and running since mid-August, some tweaks but it is working well.

Today I noticed the /media/src/ subdirectory in DataTables....with another DataTables.js in it, and subdirectories with a bunch of .js files for API, core, ext, model.

Do I need these as well? Would I put the DataTables.js file under our /javascript/ directory and create subdirectories for api, core, ext, model and keep all paths relative?

Or is this supplemental for developers building/compiling on their own?

Please help....

Replies

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    The jquery.dataTables.js file is generated from the files in src. Individually they are fairly useless, but with the make script in /scripts the files are combined into one. The main reason is to keep similar parts of DataTables grouped together and also because editing a 10'000+ line file is a fairly horrid thing to do...

    To actually use DataTables, all you should really need is jquery.dataTables.js and jquery.dataTables.css.

    Allan
  • dmartinez01dmartinez01 Posts: 6Questions: 0Answers: 0
    So then I do NOT need to install them on our webserver?
  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    No - absolutely not.

    With 1.10 I'm going to make another download page which will include only the very basic files for what you need to get going. But really its only jquery.dataTables.js, jquery.dataTables.css and the image files.

    Allan
  • dmartinez01dmartinez01 Posts: 6Questions: 0Answers: 0
    Thank you. I had been operating 'without them' for a month, so just wanted to make sure any glitches I've encountered were due to my own coding/implementation, and not missing core/source files...
This discussion has been closed.