Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • 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 ]
 
Rancher
Posts: 43016
76
  • 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: 43016
76
  • 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: 43016
76
  • 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.
 
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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you not look at the links above?

Eric
 
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: 43016
76
  • 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
 
Wink, wink, nudge, nudge, say no more, it's a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic