Posts

Showing posts with the label plugins

Detecting plugins for pdf

I just found this site that can detect acrobat reader in browser plugins. Here's the link: http://gemal.dk/browserspy/acrobat.html Viewing the source code of that page, i found these lines in the script which does the detection of pdf plugin. <object id="ocx_pdf" classid="clsid:{CA8A9780-280D-11CF-A24D-444553540000}" style="display:none"></object> <script type="text/javascript"><!-- var i_acrobatreader; var v_acrobatreader; var a_acrobatreader; if (obj(navigator.plugins)) { for (var i=0; i < navigator.plugins.length; i++) { if (navigator.plugins[i].name.toLowerCase().indexOf("adobe acrobat") >= 0) { i_acrobatreader = true; v_acrobatreader = navigator.plugins[i].description.substring(navigator.plugins[i].description.toLowerCase().lastIndexOf("version ") + 8, navigator.plugins[i].description.toLowerCase().lastIndexOf(" for")); break; } } } // --></script> <script type="te...