No flash => no flash dependent buttons
No flash => no flash dependent buttons
tbar
Posts: 4Questions: 0Answers: 0
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]
[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]
This discussion has been closed.
Replies
Allan