Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Experts,
I am running on a challenge to detect if IE plugin is installed on client machine or not.
In my case, access to QlikView dashboard is given as link within the SharePoint site.
I know a java script code snippet which detects if IE plugin is installed or not, I've used that when QlikView dashboard is accessible from link within the ASP.NET web application. Below is the java script code which detects the IE plugin:
<script type="text/javascript">
$(function () {
var check = DetectPlugin();
if (check) {
$("#frmReport").attr("src", "<%=this.pluginLinkPath%>");
}
else {
$("#frmReport").attr("src", "<%=this.ajaxLinkPath%>");
}
});
function DetectPlugin() {
try {
var name = "QlikTech.QlikOcxCtrl";
var active_x_obj = new ActiveXObject(name);
try {
return active_x_obj.GetVariable('$version');
} catch (e) {
try {
return active_x_obj.GetVersions();
} catch (e) {
try {
var version;
for (var i = 1; i < 9; i++) {
if (active_x_obj.isVersionSupported(i + '.0')) {
version = i;
}
}
return version || true;
} catch (e) {
return true;
}
}
}
} catch (e) {
return false;
}
}
</script>
I'm not sue how I can use this or develop similar function within SharePoint site. Any help on this would really appreciated.
Hi,
Check this link
blog.kalmstrom.com/2011/12/new-kalmstromcom-tip-how-to-add.html
Also you can put this js in a webpart also.
Regards,
Jagan.
Hi Jagan, thanks for your time.Yes, i can embed this code into a web part.But don't know how I can trigger this web part on click of link within the page. I cannot access this video from office machine. I will definitely go through it and update the thread as per my findings.Again,thank you very much for help.