This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can javascript tell me if plugins are enabled?

 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We've got a site where we show people a frameset page. The bottom frame contains text and a few buttons. the top frame directly loads a PDF file (by that, I mean it's not an HTML file with any sort of plugin code, the src attribute of the frame points directly to the PDF file).

If a user has "Run Active X and plugins " disabled, then that top frame just sits empty.

The PDF is downloaded by the browser (which our apache logs confirm), but then the plugin doesn't activate.

Is there a way to tell that this is happening? Because then we could output a link to the PDF file. Clicking the link works, because this would load the PDF in the external Adobe Reader application.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at this page and see if you can get anything from the activeX section.

http://www.rgagnon.com/jsdetails/js-0056.html

Eric
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This also has other detections:

http://www.javascriptkit.com/script/script2/plugindetect.shtml

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic