JWS and IE6 (Windows XP)

Anybody any idea how to update the javascript for autodetection of JWS so it'll work with IE6?
[116 byte] By [weird] at [2007-9-26 4:56:31]
# 1

I use the following script. Detection is ok. But on some installations of Win XP, the download process does not start (download.html)

<SCRIPT LANGUAGE="JavaScript"

SRC="xbDetectBrowser.js">

</SCRIPT>

<SCRIPT LANGUAGE="JavaScript">

var javawsInstalled = 0;

isIE = "false";

if (navigator.mimeTypes && navigator.mimeTypes.length) {

x = navigator.mimeTypes['application/x-java-jnlp-file'];

if (x) javawsInstalled = 1;

} else {

isIE = "true";

}

</SCRIPT>

<SCRIPT LANGUAGE="VBScript">

on error resume next

If isIE = "true" Then

If Not(IsObject(CreateObject("JavaWebStart.isInstalled"))) Then

javawsInstalled = 0

Else

javawsInstalled = 1

End If

If Not(IsObject(CreateObject("JavaWebStart.isInstalled.2"))) Then

javaws12Installed = 0

Else

javaws12Installed = 1

End If

End If

if javaws12Installed = 1 Then

document.write("<a href=http://172.17.83.162:7001/crawler/misc/crawler.jnlp><b>START</b></a> the crawler!!!")

Else

document.write("Click ")

document.write("<a href=http://dlres.java.sun.com/PluginBrowserCheck?pass=http://172.17.83.162:7001/crawler/jsp/download.html&fail=http://java.sun.com/cgi-bin/javawebstart-platform.sh>here</a> ")

document.write("to download and install the Java Web Start product and the crawler.")

End If

</SCRIPT>

xbDetectBrowser.js is the one you can find in the technical docs of JWS

hopes that helps.

guy

deffauxg at 2007-6-29 18:50:51 > top of Java-index,Desktop,Deploying...