Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: how can i detect whether the broswer can run JAVA?


Message #1 by Tristian O'brien <obrient@m...> on Tue, 2 May 2000 16:39:43 +0100
This message is in MIME format. Since your mail reader does not understand

this format, some or all of this message may not be legible.



------_=_NextPart_001_01BFB44C.A2DBEF20

Content-Type: text/plain;

	charset="iso-8859-1"



 




Message #2 by "Chris Ullman (List moderator)" <chrisu@w...> on Tue, 2 May 2000 17:45:1
Not really a databases question is it, but the answer comes in the form of 

the browser capabilities component that comes as part of ASP. It uses the 

browser.ini file to determine what capabilities a browser has. There is a 

javaapplets setting in this file, that can be used to detect whether a 

browser can run java applets. In ASP 3.0 you can create a version of the 

BrowserCapabilities component using Server.CreateObject and then use the 

properties of this object to test for the ability...



e.g. objBCap = Server.CreateObject("MSWC.BrowserType")  

    if objBCap.JavaApplets = True then ...



However, the ability to run Java applets using the native support of the 

browser isn't the only way of running Java applet. Netscape 6 removes 

native Java support from the browser and relies on the user to download the 

latest plugin. The advantage of this is that you don't have to rely on 

having an up to date browser with an up to date version of the JVM (which 

IE5 and NC4.72 don't have), instead you can download the latest version. Of 

course the time take to download the plug-in can be quite lengthy.



Chrus


  Return to Index