omega
omega

Reputation: 43843

jQuery/c# - how to tell if acrobat plugin is installed and web viewer setting is true?

In jQuery or c# (since I am working on an .aspx page on Sharepoint 2010) is there a way to detect if the acrobat plugin is installed and the web viewer setting is enabled. I believe the plugin gets installed with adobe reader 10 and above. I have this

$.each(navigator.plugins, function() {
    if (this.name == "Adobe Acrobat") {
        $('body').append("You have Acrobat");           
    }
});

but I am not sure if this is good enough.

Can anyone help? Thanks.

Edit: This needs to work with at least IE9.

Upvotes: 1

Views: 788

Answers (1)

Ryan McDonough
Ryan McDonough

Reputation: 10012

This plugin would be of use to you:

http://archive.plugins.jquery.com/project/jqplugin

And not jquery plugin how still JS:

http://thecodeabode.blogspot.co.uk/2011/01/detect-adobe-reader-plugin.html

Upvotes: 2

Related Questions