File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes can javascript tell me if plugins are enabled? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "can javascript tell me if plugins are enabled?" Watch "can javascript tell me if plugins are enabled?" New topic
Author

can javascript tell me if plugins are enabled?

Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
This also has other detections:

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

Eric
 
wood burning stoves
 
subject: can javascript tell me if plugins are enabled?
 
Similar Threads
SCEA Part -I Objectives
Free ECLPISE plugin for UML,Sequence Diagrams
displaying in browser
Dynamically finding classes that implement an interface
Servlet failed with IOException