Download builder Package results Single File

Download builder Package results Single File

SnehSneh Posts: 1Questions: 1Answers: 0

I've used the Download builder for my wanted config. jQuery, Datatables etc. Single file option.
The page says,
"Include the following in your HTML to load the required Javascript and CSS for the options selected above."
e.g.
<link rel="stylesheet" type="text/css" href="DataTables/datatables.min.css"/>

There are no such files, datatables.min.css or datatables.min.js
And all jQuery functions are is undefined.

I was hoping to not have to manually reference everything individually.
Am I missing something? Thanks.

Answers

  • ezianteeziante Posts: 4Questions: 0Answers: 0

    I'm having the same issue.

    If you select the packages you need and then select "Single file" under the Concatenation option it gives you a zip archive with all the selected packages but it does not include the concatenated single file.

    In my case the selected packages are:

    • DataTables
    • Buttons
    • Column visibility
    • Flash export
    • HTML5 export
    • JSZip
    • pdfmake
    • Print view
    • FixedHeader
    • Responsive
    • Minify
    • Single file
    • Local files

    If you select to use the CDN and then use the link provided to download the js file as well as the css file, you will get the concatenated files as intended so I believe this is a bug with the "Local files" option.

  • ickybroickybro Posts: 5Questions: 1Answers: 0

    I am also seeing the same behavior when I download the package.

  • connorsfourconnorsfour Posts: 5Questions: 1Answers: 0

    Same here.

  • jLinuxjLinux Posts: 981Questions: 73Answers: 75

    Actually yeah, This happened to me, and I just thought.. oh well.. lol

  • allanallan Posts: 63,106Questions: 1Answers: 10,394 Site admin

    That's very odd - thanks for reporting this. I've just tried the configuration from @eziante but I do appear to get the concatenated files in the downloaded package.

    Could anyone else who is also seeing this issue post the selection options you used please?

    Thanks,
    Allan

  • connorsfourconnorsfour Posts: 5Questions: 1Answers: 0

    Main libraries
    jQuery: No jQuery
    styling: DataTables
    DataTables: DataTables

    Extensions
    Buttons: Buttons
    Buttons: Column Visibility
    Buttons: Flash export
    Buttons: HTML5 export
    Buttons: JSZip [Excel button]
    Buttons: PDFMake [PDF button]
    Buttons: PrintView

    Packaging options
    Minification: Minify
    Concatenate: Single file
    CDN: Local files


    Within the DataTables.zip I get four folders
    - Buttons-1.0.3
    - DataTables-1.10.9
    - JSZip-2.5.0
    - pdfmake-0.1.18

    There is nothing I see that ties them into one file.

  • connorsfourconnorsfour Posts: 5Questions: 1Answers: 0
    edited October 2015

    Okay this is odd. On my phone I tried to download the files. The files are there. Back to my PC and tried to download again the files are not there. I think the they are being killed by a virus scan?

  • allanallan Posts: 63,106Questions: 1Answers: 10,394 Site admin

    I think the they are being killed by a virus scan?

    That would be frustrating! Do your virus scanner logs show anything? What if you disable it for a few moments?

    Allan

  • ezianteeziante Posts: 4Questions: 0Answers: 0

    I just tried to download it from my mobile phone with the same settings as i used before and i do as @connorsfour get the concatenate files in the .zip folder.

    Still not getting them on the desktop though.

  • ezianteeziante Posts: 4Questions: 0Answers: 0

    I just tried with the following browsers on desktop with the same result

    • Chrome 45.0.2454.101
    • Firefox 41.0.1
    • Opera 32.0.1948.69
    • IE v. 11.0.9600.17959

    So it doesn't seem to be a browser issue.

  • ezianteeziante Posts: 4Questions: 0Answers: 0

    Okay new update.

    Tried to download them on a freshly installed version of Linux and the files were there.

    Went back to windows and tried to view the archive with 7-zip instead of the default windows one and the files still weren't there.
    I then tried to extract with 7-zip instead of the default windows one and finally the files were there.

    So I guess the problem has something to do with the default zip program in Windows.

  • allanallan Posts: 63,106Questions: 1Answers: 10,394 Site admin

    I've just tried the default windows unzip (Win7) and it does indeed appear to remove the Javascript files at the root level (but oddly, not in the sub directories).

    Googling about this there are a few reports about it, but nothing much, which is surprising.

    No log messages from the zip program, nothing to say what is happening. Very frustrating!

    Allan

  • indymxindymx Posts: 63Questions: 3Answers: 0
    edited October 2015

    I also tried to download single package today. Got the zip file, no DataTables/datatables.min.css or js

    I don't think it's getting put into the file.

  • allanallan Posts: 63,106Questions: 1Answers: 10,394 Site admin

    Have you tried unzipping the package with something other than the default windows archiver? I'm quite certain that the files are in fact there - but the Windows default archiver is stripping them out for some bonkers reason.

    Allan

  • indymxindymx Posts: 63Questions: 3Answers: 0

    Yep. used 7zip and they were there.

    That's just dumb.. ;)

  • allanallan Posts: 63,106Questions: 1Answers: 10,394 Site admin

    Yup -I just can't understand it. Going to post on MSDN and see what is going on. Will post back here when I find out more.

    Allan

This discussion has been closed.