• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

can javascript tell me if plugins are enabled?

 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This also has other detections:

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

Eric
 
No more fooling around. Read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic