Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get client machine java-version using java,javascript

 
Hasan Jafferullah Hoshmin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all - Is it possible to get client machine java-version using javascript

My Code is here:

<html>
<head>
<script src="http://java.com/js/deployJava.js"></script>
<script type="text/javascript">
function fun1()
{
if( deployJava.versionCheck("1.6")==true )
{
document.getElementById("version").innerHTML="Version Supported";
document.getElementById("versionname").innerHTML = java.lang.System.getProperty("java.version");

}else
{
document.getElementById("version").innerHTML="Version not Supported";
}
}
</script>
</head>
<body onload="fun1()">
<div id="version"></div>
<div id="versionname"></div>
</body>
</html>
But this shows only my java version installed and not the client machine java-version Please help me

Thanks - Haan
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
 
Hasan Jafferullah Hoshmin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want a sample code here pl
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To answer the question more broadly (by teaching you how to detect all kinds of client-side capabilities), have a look here.

Hasan Jafferullah Hoshmin wrote:I want a sample code here pl

And you will have it after you've spent a bit of time learning about this stuff.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic