DataTables / TableTools

Please note that TableTools has now been retired and replaced by the Buttons and Select extensions which offers significant improvements and API integration with the rest of DataTables and the other extensions.
http://datatables.net/
Other
237 stars 149 forks source link

Check if the browser supports Flash #32

Closed alesnav closed 10 years ago

alesnav commented 11 years ago

One function included: "_fnHasFlash"

returns a boolean:

Then, I edited two statements of "_fnCreateButton" function. Target: not to create any Flash button if the browser does not support it. If the browser don't support a Flash button, it will be a simple text button.

alesnav commented 11 years ago

Thanks to albertein for publishing this way to check Flash capabilities. See StackOverflow post: http://stackoverflow.com/questions/998245/how-can-i-detect-if-flash-is-installed-and-if-not-display-a-hidden-div-that-inf

At this moment, I use the "fnInit" function to initialize these "converted" buttons as disabled, but it would be nice if anyopne include a method to get it from here.

Thanks!

DataTables commented 11 years ago

This is not a bad idea at all - thanks for sending the pull request. I'll look through it in more detail when I get a chance - hopefully next week sometime and pull it in. Personally i hate needing to use flash for those buttons, but there just isn't a way of providing their functionality in Javascript...

alesnav commented 11 years ago

I hate flash, too. Anyway... we have to live with it, unless someone creates another way to get it done.

Thanks

DataTables commented 10 years ago

Fixed in 95fa46b5814. Thanks for bringing this up!