No flash => no flash dependent buttons

No flash => no flash dependent buttons

tbartbar Posts: 4Questions: 0Answers: 0
edited January 2013 in TableTools
Does TableTools provide a way to only show non-flash dependent buttons if Flash isn't installed? For now I use the following javascript to detect if flash is available before initialising TableTools but it would make sense for it to be done by TableTools automatically.

[code]
function IsFlashInstalled () {
// Internet Explorer supports the mimeTypes collection, but it is always empty
if (navigator.mimeTypes && navigator.mimeTypes.length > 0) {
// Firefox, Google Chrome, Safari, Opera
var mime = navigator.mimeTypes['application/x-shockwave-flash'];
if (mime && mime.enabledPlugin) {
return true;
}
} else {
if (typeof (ActiveXObject) != "undefined") {
// Internet Explorer
try {
var flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.1");
return true;
}
catch (e) {
}
}
}

return false;
}
[/code]

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Sounds like a good idea. Currently no it doesn't, but that sounds like a good idea for v3, plans for which are currently brewing :-)

    Allan
This discussion has been closed.