Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Mon, 12 Dec 2005 21:48:02 -0800,    group: microsoft.public.inetsdk.programming.scripting.jscript        back       


javaEnabled() function always returns true   
I need to detect whether the client has Java enabled or not on his browser. 
So I am using the javaEnabled() function [1] to get this information. When 
using Opera8.51, Firefox1.5, Netscape8.0 on Windows XP SP2, I am getting the 
correct information about Java being enabled or not. i.e. when there is no 
JRE on the client PC javaEnabled() function returns false.
But when I am using IE, javaEnabled() always returns true, irrespective of 
whether Java is present on the client PC or not. Can anyone explain this 
behavior of IE?

Regards,
-Aayush

[1] 
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/javaenabled.asp

--
Locate me in the blogosphere: http://spaces.msn.com/members/aayushpuri
date: Mon, 12 Dec 2005 21:48:02 -0800   author:   Aayush Puri aayushpuri @ h o t m a i l . c o m

Re: javaEnabled() function always returns true   
Aayush Puri wrote:

> But when I am using IE, javaEnabled() always returns true, irrespective of 
> whether Java is present on the client PC or not. Can anyone explain this 
> behavior of IE?

Microsoft some years ago developed its own Java virtual machine (JVM) 
which might be installed and enabled for those IE versions where you get 
the result as true. Check the IE settings.

-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/
date: Wed, 14 Dec 2005 14:31:22 +0100   author:   Martin Honnen

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us