[thelist] ASP browsercheck code for XML-enabled browser?

Chris Evans chris at fuseware.com
Wed Apr 5 12:46:12 2000


The below code will not tell you if the browser has Java enabled.  It will
just tell you if the browser is capable of using Java.  If I am using NS
4.72 and have Java disabled, the below code will feed me the Java version.

A minor point, but important.

Chris Evans
chris@fuseware.com
http://www.fuseware.com


-----Original Message-----
From: thelist-admin@lists.evolt.org
[mailto:thelist-admin@lists.evolt.org]On Behalf Of Bert Szoghy
Sent: Wednesday, April 05, 2000 12:12 PM
To: 'thelist@lists.evolt.org'
Subject: [thelist] ASP browsercheck code for XML-enabled browser?


The following ASP VBScript will tell you if the browser is Java enabled:


<% Response.Buffer = True %>
<% Set objBrowse = Server.CreateObject("MSWC.BrowserType")%>
<% If objBrowse.javaapplets = true then %>
	<!-- #INCLUDE FILE="../lib/Header_With_Java.asp" -->
<% Else %>
	<!-- #INCLUDE FILE="../lib/Non_Java_Header.asp" -->
<% End If %>


You can substitute "javaapplets" with "javascript" to find out if the
browser has javascript enabled.

My question is, is there a quick and easy way to find out if the browser is
XML-enabled?

---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !