Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript way to list available plugins for IE

Is there a quick way to get a list in JavaScript of the available Active X plugins?

I need to do a test to see if a plugin has been installed before I actually try to run it.

In effect I want to create a page that says 'Plugin Installed and properly Working' or have it fail gracefully.

I'm not sure how to have it fail gracefully if the plugin is not available.

like image 831
Tom Hubbard Avatar asked May 27 '09 17:05

Tom Hubbard


People also ask

Where are IE plugins stored?

As with all add-ons, the plugins you install to give your browser additional functionality are located in a folder on your C: drive. If you need to only review a list of your plugins, or enable or disable one or more plugins, you can also find them on a special plugins screen within your browser.

Are Navigator plugins deprecated?

plugins. Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes.

What is plugin object in Javascript?

Browser support: Contains information about an installed plug-in in the browser. A plug-in can be associated with several MIME types. You can get details about these MIME types with the methods of the plugin object.


1 Answers

Just try it.

try {
  var plugin = new ActiveXObject('SomeActiveX');
} catch (e) {
  alert("Error"); // Or some other error code
}
like image 104
Sasha Chedygov Avatar answered Sep 24 '22 18:09

Sasha Chedygov