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

StackOverflow https://stackoverflow.com/questions/12390828

  •  01-07-2021
  •  | 
  •  

سؤال

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.

هل كانت مفيدة؟

المحلول

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top