Java Reference
In-Depth Information
L ISTING 8.11 Continued
isIE = “false”;
if (navigator.mimeTypes && navigator.mimeTypes.length) {
x = navigator.mimeTypes['application/x-java-jnlp-file'];
if (x) isJWSInstalled = 1;
} else {
isIE = “true”;
function insertLink(jnlpUrl, text) {
if (isJWSInstalled) {
document.write(“<a href=” + jnlpUrl + “>” + text + “</a>”);
} else {
document.write(“<a href=” + jWSHome +
“>Before launching the application click here to install Java Web Start</a>”);
on error resume next
If isIE = “true” Then
If Not(IsObject(CreateObject(“JavaWebStart.IsInstalled”))) Then
isJWSInstalled = 0
isJWSInstalled = 1
End If
End If
<H1>Launch Page</H1>
Try Out our application!
<SCRIPT LANGUAGE=”Javascript”>
insertLink(“myApp.jnlp”,”Launch myApp”)
End-User Considerations
We are going to shortly touch on some important points commonly encountered by end-users
and developers dealing with Java Web Start.
Splash Windows Extravaganza
A common problem experienced by end-users with JNLP-launched applications is the frag-
mented experience perceived by them when observing several windows appearing one after the
other during installation, and even during usual execution. Less-experienced users feel con-
fused by the different vendor's banners, whereas developers want Java Web Start to be fully
Search WWH ::

Custom Search