Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    fat
    fat is offline
    New Coder
    Join Date
    Jun 2009
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question IE Java Applet client user test

    hi

    I want to test whether a user with internet explorer browser that visits my site has java installed and enabled.

    is there a way to do a test like that in javascript or any other way ?


    thanks

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,730
    Thanks
    202
    Thanked 2,508 Times in 2,486 Posts
    Quote Originally Posted by fat View Post
    hi

    I want to test whether a user with internet explorer browser that visits my site has java installed and enabled.

    is there a way to do a test like that in javascript or any other way ?


    thanks
    In a word, no.

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    fat
    fat is offline
    New Coder
    Join Date
    Jun 2009
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Philip M View Post
    In a word, no.

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
    can you elaborate please ? I just want to show the user a message or warning of some kind that tells the user he has no Java support.

    wouldn't this work:
    http://mapskp.cesr.fr/tools/javaplug...lugin_test.php ?

  • #4
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,762
    Thanks
    55
    Thanked 517 Times in 514 Posts
    I think this kind of comes close:
    Code:
    if (navigator.javaEnabled()&&navigator.appName == 'Microsoft Internet Explorer'){
    alert("IE java enabled")
    }
    but navigator sniffing is hugely unreliable - people can make their browser appear to be whatever they like.

  • #5
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    Does it have to be specifically IE? You could just use navigator.javaEnabled() for all browsers. I tested an alert for IE, FF, and Chrome, and it worked in all three.

    UPDATE: I disabled Java in my IE8 and tested using navigator.javaEnabled() - it still shows as enabled. ???
    Last edited by WolfShade; 09-24-2012 at 04:12 PM.
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

  • #6
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,730
    Thanks
    202
    Thanked 2,508 Times in 2,486 Posts
    Quote Originally Posted by WolfShade View Post
    Does it have to be specifically IE? You could just use navigator.javaEnabled() for all browsers. I tested an alert for IE, FF, and Chrome, and it worked in all three.

    UPDATE: I disabled Java in my IE8 and tested using navigator.javaEnabled() - it still shows as enabled. ???
    http://javatester.org/enabled.html

    "In Internet Explorer 8 under Windows 7, it's hopeless. Nothing prevents Java from running"

    Perhaps I have misunderstood the question. There is no way that the site owner can become aware of whether the specific user has Java enabled or not.
    Last edited by Philip M; 09-24-2012 at 04:22 PM.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #7
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    "In Internet Explorer 8 under Windows 7, it's hopeless. Nothing prevents Java from running"
    Why does this not surprise me? No wonder all the hackers and script-kiddies target Micro$oft.. they leave themselves open to it.

    smh
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

  • #8
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    Apparently, it's the same for Chrome. Either that, or javaEnabled() doesn't work. I disabled the Java plugin in Chrome v20, and the alert still shows.

    ^_^
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

  • #9
    fat
    fat is offline
    New Coder
    Join Date
    Jun 2009
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts
    but what about this method:
    http://mapskp.cesr.fr/tools/javaplug...lugin_test.php

    it looks like the solution

  • #10
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,730
    Thanks
    202
    Thanked 2,508 Times in 2,486 Posts
    Quote Originally Posted by fat View Post
    but what about this method:
    http://mapskp.cesr.fr/tools/javaplug...lugin_test.php

    it looks like the solution
    Well, I have Java enabled in IE9 and received the result

    Java Applet failed to load. Is Java enabled in your browser?

    Does not seem very reliable.

    I stick with my original answer - no. JavaScript has no capability to access the client's operating system or the Windows registry, or alter the default behaviour of the browser.
    Last edited by Philip M; 09-27-2012 at 11:06 AM.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •