Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to find out jre version of a client browser using javascript

 
Jyoti Sri
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All ,

I have a requirement in which I need to check if the client browser has met a specific set of requirements like brower name (IE or Netscape etc.) , browser version etc.

I also need to check is java is enabled for that browse which I am doing using navigator.javaEnabled() method.

I want to check if the Jre version browser is using is greater than 1.4
Can any body suggest me some javascript code find out jre version a browser is using.

Thanks in advance

Regards

Jyoti
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Jyoti S",
Please check your private messages. Your account is about to be closed.
-Ben
[ June 25, 2008: Message edited by: Ben Souther ]
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This page has JavaScript code that enumerates all plugins. From that it's possible to derive the supported Java version.
 
Jyoti Sri
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf for your response,

The above link shows nothing (blank) in the Installed plugin section when I open this page in IE.

I am able to see some plugins when i open same link in mozilla.

Probably you are using navigator.plugins() method.But i believe this method doesn't works for IE.

Please let me know if there is any workaround for this

Thanks & Regards
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may have to use VBScript to make this work on IE. See here for details.
 
Jyoti Sri
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf for this wonderful link!

This has almost solved my problem but I am still not able to figure out how do i know the version of jre installed ?
This script just let me to detect the existance of a java plugin , but if it exist what is the version how to find that out ?

Please share any information you have on this.

Thanks & Regards
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The page on my site shows all the supported Java versions; it's just matter of using string operations to extract the latest one.

How this would work with the VBS stuff, I have no idea; I've never used that.
 
amir raj
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hi All ,

I have a requirement in which I need to check if the client browser has met a specific set of requirements like brower name (IE or Netscape etc.) , browser version etc.

I also need to check is java is enabled for that browse which I am doing using navigator.javaEnabled() method.

I want to check if the Jre version browser is using is greater than 1.4
Can any body suggest me some javascript code find out jre version a browser is using.

Thanks in advance

Regards
Raja
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you not look at the links above?

Eric
 
Christian Winkler
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

is it possible to find out, wich bit-version the plugins are?

Thanks & Regards,
Abra
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is a "bit-version"?
 
Christian Winkler
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean 64bit or 32bit
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic