Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Plugin Detect

  1. #1
    Junior Member
    Join Date
    Sep 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Plugin Detect

    Hi Guys

    I am new to Java scripting so hopefully one of you can help

    I have a script I am working from.

    I need to search machines for adobe reader and the version number

    A bit of the script i have looks for Shockwave player below however I want it to look for adobe reader and the version instead

    Any ideas would be appreciated


    The script also searchs for browser, flash v, java v succesfully

    If you need any more information pleas let me know

    many thanks

    r

    function CheckSW()
    {
    if(PluginDetect.isMinVersion('Shockwave', ShockwaveVer) == 1){
    document.write('<span class="correct">Shockwave v' + PluginDetect.getVersion('Shockwave') + '</span>');
    }
    if(PluginDetect.isMinVersion('Shockwave', ShockwaveVer) !== 1 && PluginDetect.getVersion('Shockwave') == null)
    {
    document.write('<span class="error">Shockwave not installed</span>' );
    }
    if(PluginDetect.isMinVersion('Shockwave', ShockwaveVer) !== 1 && PluginDetect.getVersion('Shockwave') !== null)
    {
    document.write('<span class="warning">Shockwave v' + PluginDetect.getVersion('Shockwave')+ '</span>' );
    }
    }


  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Plugin Detect

    Please do not double post your question

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,334
    Thanks
    181
    Thanked 830 Times in 773 Posts
    Blog Entries
    5

    Default Re: Plugin Detect

    Thread locked as duplicate of http://www.javaprogrammingforums.com...in-detect.html

Similar Threads

  1. detect agent and show name.
    By aecosis in forum Java Theory & Questions
    Replies: 0
    Last Post: May 29th, 2012, 10:26 PM
  2. automatically detect hyperlinks
    By dabdi in forum Java Theory & Questions
    Replies: 12
    Last Post: September 13th, 2011, 08:51 AM
  3. [SOLVED] Detect USB signal
    By mine0926 in forum Java Native Interface
    Replies: 2
    Last Post: February 4th, 2011, 06:46 PM
  4. detect duplicated programs
    By pulsarsitra in forum Java Theory & Questions
    Replies: 0
    Last Post: January 13th, 2011, 10:54 AM
  5. How can I detect the end of a line in a file ?
    By lumpy in forum Java Theory & Questions
    Replies: 3
    Last Post: February 18th, 2010, 02:13 AM