Flashfallback with html5 buttons?

Flashfallback with html5 buttons?

iecwebmastiecwebmast Posts: 66Questions: 9Answers: 1

Quick question...
If I use the HTML5 export buttons setting, is the Flash fallback still provided for older browsers?
https://datatables.net/extensions/buttons/examples/html5/simple.html

Or does the Flash fallback only work if you don't specify html5?
https://datatables.net/extensions/buttons/examples/initialisation/export.html

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,161Questions: 1Answers: 10,406 Site admin

    is the Flash fallback still provided for older browsers?

    If you use the csv, excel, etc button types and also include the buttons.flash.js file, then yes.

    Allan

  • iecwebmastiecwebmast Posts: 66Questions: 9Answers: 1
    edited September 2016

    So, it will not work if I use excelHtml5, pdfHtml5?
    I've included buttons.flash.js

  • iecwebmastiecwebmast Posts: 66Questions: 9Answers: 1
    Answer ✓

    I've reread the information provided on the html and standard buttons explanation links cited in my original question.

    https://datatables.net/extensions/buttons/examples/initialisation/export.html
    Buttons provides button types that will automatically determine if HTML5 or Flash should be used based on the browser's functionality and it is strongly recommended that you use these button types over the specific HTML5 or Flash button types. These are: copy, csv, excel, pdf.

    and...
    https://datatables.net/extensions/buttons/examples/html5/simple.html
    Please note that the copy, excel, csv and pdf button types may also use the HTML5 button types noted here, providing a Flash fallback for older browsers (IE9-).

    So that answers it! :) Flash fallback will NOT work if you specifiy excelHtml5 and pdfHtml5

    Sorry for not picking that up on a first read through.

This discussion has been closed.