views:

350

answers:

4

Is there any jquery plugin/script to detect Adobe Reader on user system ? and it is not then show a message to download.

Code should be compatible with all A-grade browsers.

alt text

+2  A: 

Googling turns up this:

jQuery browser plugin detection

Pekka
+1 looking good will check http://jqplugins.appspot.com/jqplugin
metal-gear-solid
oh i tried this on same system with 2 browsers FF is showing PDF: yes and IE7 showing PDF:No
metal-gear-solid
I get this too, but legitimately (There is a PDF plugin installed in FF but not in IE). Are you sure IE has the plugin installed?
Pekka
I heard about only Flash plugin. Do we install a pluging for PDF in IE ?
metal-gear-solid
yes i checked mine PDF was disabled in Tools > Manage Addo-ns
metal-gear-solid
A: 

I'm not sure, but is the pdf not automaticly downloaded when Adobe or a similar plugin is not available?

Ikke
A: 

I don't have adobe reader, but I do have Foxit reader, which will take care of Acrobat documents. Therefore it's not a good idea to try to detect what the user has installed. Instead let the users system deal with it. If they have Adobe Reader, then it will deal with PDF files, if not, it will download and open in an app that can deal with it. If you want to help a user, add a discreet link to download Adobe Reader next to the link to the file their downloading.

Marius
A: 

Don't do this. Some users (like me) prefer to just download the PDF and not let it display in browser (through adobe readers browser plugin).

Then, there is no way to detect if the user has any program to display PDF files installed. Systems vary wildly (e.g. on Mac OS X you do not need Adobe Reader, there the "Viewer" application can display PDF files).

frunsi
ok Frunsi thx for this info
metal-gear-solid