Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8093919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:37:35+00:00 2026-06-05T20:37:35+00:00

I am working on web app with jquery, jqueryui, ajaxify and many jquery extensions.

  • 0

I am working on web app with jquery, jqueryui, ajaxify and many jquery extensions.
At some point in the application I have to use Java applet.
The applet is run via ajax call, let’s say jquery.load loads a page that generates applet code. I would like then to detect if Java is installed on the computer running the app, and if it is version 1.7+. The detection should occur only if applet is going to be used, since this functionality is to be used by limited number of users and only in certain circumstances.

I can’t use deploy.js, as this script was not designed to be run via ajax call and simply fails.
I would like to detect java only when it it really needed, i.e. when user is going to launch the applet.

How can I do that?

I will appreciate your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T20:37:37+00:00Added an answer on June 5, 2026 at 8:37 pm

    Finally I found a way to detect if java is installed.
    At first I tried with navigator.javaEnabled(), but it didn’t work properly with IE.
    Then I tried Java deployment toolkit, but didn’t succeed due to window.write which was not compatible with pages fetched via ajax.
    Then I tried to customize Java deployment toolkit following odiszapc advice … but by the end of the day I used unmodified Java development toolkit, simply I used its versionCheck method.

    If java is not detected, the user is told to download and install JRE, and link is provided.
    If correct version of Java is installed then the subpage is reloaded via ajax with parameter javaOK=1. In such a case there is no java detection, just pure applet tags, in short:

    
        $SuccessUrl = FileName . "?javaOK=1&" . $_SERVER['QUERY_STRING'];   
        (...)
        $java_detect=EOQ (heredoc shoud be here, some tags don't work)
            
            var version = '1.7'; //required version
    
            var check = deployJava.versionCheck(version+"+"); //1.7 and higher
            if(!check){ 
              $("#sign_dialog").html("$java_err"); //wrong java or no java at all
            }else{
              $("#sign_dialog").load("$SuccessUrl");
            }
          
        EOQ;
        (...)
            if(isset($_GET['javaOK']) && $_GET['javaOK']=='1'){
              echo $applet;
            }else{
              echo $java_detect;
            }
    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a web app, which I decided to use jQuery Mobile for
So I'm working on a web app that makes use of the jquery mobile
So I'm working on a mobile web app using jQuery Mobile, and I need
I am currently working on a web app using Wicket and started using jQuery
I am working on a web app which makes use of a 3rd party
Working on my first ASP.Net MVC2 web app recently, I came across some issues
I'm working on different language packs for my web app. Some of the output
I'm working on a simple web app using jQuery mobile, and it is designed
I am working on a simple web app using jquery mobile. I am attempting
I'm working on a utility web app that to help manipulate some domain-specific XML

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.