?
Solved

Need to get browser type and java version from a users machine using html or asp

Posted on 2012-08-23
4
Medium Priority
?
520 Views
Last Modified: 2012-08-28
I need a simple code to get and display what version of IE and what version of Java a user has on their machine.
We use a program where the user installs a cert to view pay stubs. Although I know this is ancient our company is not changing anytime soon.
They have to use IE 7 or 8 and then Java 6 _27 or older, they also have to add 5 trusted sites. We continually get calls because user are unable to do this properly.
Would anyone have some code where I could direct these people to a web site and it tell them what they are running.

Thanks
0
Comment
Question by:kruggiero
  • 3
4 Comments
 
LVL 54

Expert Comment

by:Scott Fell, EE MVE
ID: 38325869
Here is info on how to place if ie code and detect versions or not versions
http://www.quirksmode.org/css/condcom.html
<p class="accent">
<!--[if IE]>
According to the conditional comment this is IE<br />
<![endif]-->
<!--[if IE 6]>
According to the conditional comment this is IE 6<br />
<![endif]-->
<!--[if IE 7]>
According to the conditional comment this is IE 7<br />
<![endif]-->
<!--[if IE 8]>
According to the conditional comment this is IE 8<br />
<![endif]-->
<!--[if IE 9]>
According to the conditional comment this is IE 9<br />
<![endif]-->
<!--[if gte IE 8]>
According to the conditional comment this is IE 8 or higher<br />
<![endif]-->
<!--[if lt IE 9]>
According to the conditional comment this is IE lower than 9<br />
<![endif]-->
<!--[if lte IE 7]>
According to the conditional comment this is IE lower or equal to 7<br />
<![endif]-->
<!--[if gt IE 6]>
According to the conditional comment this is IE greater than 6<br />
<![endif]-->
<!--[if !IE]> -->
According to the conditional comment this is not IE<br />
<!-- <![endif]-->
</p>
0
 
LVL 54

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 total points
ID: 38325886
I have never needed to  use this, but you can get the code for java from oracle  http://docs.oracle.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html#deplToolkit

There is a link for javascript to place on your site  http://java.com/js/deployJava.js and the options for detection.

createWebStartLaunchButton(jnlp, minimumVersion) - Outputs a launch button for the specified JNLP URL. When clicked, the button will ensure that an appropriate JRE is installed and then launch the JNLP application.

createWebStartLaunchButtonEx(jnlp, minimumVersion) - Outputs a launch button for the specified JNLP URL. When clicked, the button will ensure that an appropriate JRE is installed and then launch the JNLP application. The JNLP file does not require a value for the codebase attribute. This function requires that the Java SE 6 update 18 release be present on the client. If the Java SE 6 update 18 release is not present on the client, then the user will be instructed to install the required software.

getBrowser() - Returns the name of the browser currently running.

getJREs() - Returns an array of currently-installed JRE version strings.

installJRE(requestVersion) - Triggers the installation of the specified requestVersion, the latest version matching the specified requestVersion, or the latest JRE. 

installLatestJRE() - Triggers the installation of the latest JRE 

isPlugin2() - Determines if the next generation Java Plug-in is the default.

isWebStartInstalled(minimumVersion) - Returns true if an installation of Java Web Start of the specified minimumVersion can be detected. 

launch- Launches JNLP application.

runApplet(attributes, parameters, minimumVersion) - Ensures that an appropriate JRE is installed and then runs an applet. 

setAdditionalPackages(packageList) - Sets additional package list to be used by kernel installer. 

setInstallerType(type) - Sets the preferred install type : null, online, kernel.

versionCheck(version) - Returns true if there is a matching JRE version currently installed (among those detected by the getJREs() function). 

writeAppletTag(attributes, parameters) - Outputs an applet tag with the specified attributes and parameters. The parameters argument is optional.

Open in new window

0
 

Author Comment

by:kruggiero
ID: 38326487
thanks for the IE info, I think I can manipulate that...

Java, any way to get them to not have to run something, these are people who don't know how to type a link out
0
 
LVL 54

Expert Comment

by:Scott Fell, EE MVE
ID: 38326574
You will use that information in your javascript code to detect java version then do what ever actions needed to offer to install a newer version or what if they have a new version and you require an old version?    I think the average is 10% to 20% have java turned off.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question