hwg-techniques archives | Jul 2001 | new search | results | previous | next |
IE JVM Problems...by "Alan Willis" <alan.willis(at)thb.scot.nhs.uk> |
|
Hi there. Is there a way of detecting if the JVM is installed in Windows as opposed to telling whether the JVM is enabled? I have tried the following two items of code on a Windows box that doesn't have the JVM installed,, but each time IE tries to download the JVM and install it. Code Item 1 =========== <applet code="SiteMap2ech.class" codebase = "/newintranet/intranet/00_common/java/sitemap/" width="91" height="11"> <param name="AUTHOR" value="Eric Harshbarger, http://www.ericharshbarger.org"> <param name="COPYRIGHT" value="SiteMap applet, Copyright 1998, Eric Harshbarger"> <param name="MAPFILE" value="/newintranet/intranet/00_common/java/sitemap/sitemap.txt"> <param name="BACKGROUND" value="/newintranet/intranet/00_common/java/sitemap/sitemap.gif"> <param name="FOREGROUND" value="/newintranet/intranet/00_common/java/sitemap/sitemap2.gif"> <a href="/newintranet/intranet/search/" class="sitemap" target="main">SITEMAP</a> </applet> Code Item 2 =========== <script language="JavaScript"> <!-- if (navigator.javaEnabled()==1) { document.write('<applet code="SiteMap2ech.class" codebase = "/newintranet/intranet/00_common/java/sitemap/" width="91" height="11">'); document.write(' <param name="AUTHOR" value="Eric Harshbarger, http://www.ericharshbarger.org">'); document.write(' <param name="COPYRIGHT" value="SiteMap applet, Copyright 1998, Eric Harshbarger">'); document.write(' <param name="MAPFILE" value="/newintranet/intranet/00_common/java/sitemap/sitemap.txt">'); document.write(' <param name="BACKGROUND" value="/newintranet/intranet/00_common/java/sitemap/sitemap.gif">'); document.write(' <param name="FOREGROUND" value="/newintranet/intranet/00_common/java/sitemap/sitemap2.gif">'); document.write('</applet>'); } else { document.write('<a href="/newintranet/intranet/search/" class="sitemap" target="main">SITEMAP</a>'); } //--> </script> I am probably missing something fairly fundamental, so any help to this email address would be greatly appreciated. - Alan Willis ------ Alan Willis, FINIX, Tayside Health Board, 30 Mains Loan, Dundee, DD4 7BT | Phone (01382)561818, x70277
HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA