am using asp.net
with Jquery, Javascript and
flash
.
Problem: I want to launch a window for install flash at client end(if not flash is not installed).
I used below javascript code to detect if flash is installed or not.
function detectFlash() {
var hasFlash = false;
try {
var fo = (navigator.mimeTypes && navigator.mimeTypes['application/x-shockwave-flash']) ? navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin : 0;
if (fo) {
hasFlash = true;
}
} catch (e) {
if (navigator.mimeTypes['application/x-shockwave-flash'] != undefined) {
hasFlash = true;
}
}
if (hasFlash) {
alert("flash is installed");
}
}
but using above code I got only true or false if installed or not. but if not installed then how can I launch window to install flash using Javascript/JQuery or asp.net
How can I achieve this?