How do you test if plugins are enabled?

Discussion in 'JavaScript' started by jtaylor, Dec 3, 2010.

  1. #1
    In javascript:
    1. how do you test if plug ins are enabled?
    2. How do you test if flash is enabled?
    3. If flash is enabled, how do you test what version it is?

    thank you
     
    jtaylor, Dec 3, 2010 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I know there are scripts that detect common plugins, but I'm not sure if it's possible to detect every plugin installed.

    As for detecting flash and its version number, this kit should do the trick:
    Adobe Flash Player Detection Kit
     
    Cash Nebula, Dec 6, 2010 IP
  3. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #3
    SWFObject - http://code.google.com/p/swfobject/ - is the most popular way to deal with flash embedding and any checks that entails out there (bar library agnostic checks like mootools swiff)
     
    dimitar christoff, Dec 6, 2010 IP
  4. Voynex

    Voynex Peon

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    For the Gecko based browsers like FireFox the window.navigator.plugins property can be used to list the available plug-ins.
     
    Voynex, May 19, 2011 IP
    dimitar christoff likes this.