Rene said:
So?
<URL:
http://jibbering.com/faq/faq_notes/pots1.html#ps1Post>
maybe it is my Firefox and its JavaScript implementation.
Certainly not; you have to distinguish between the (ECMAScript)
language implementation and the AOM/DOM that can be accessed with it.
Probably the problem is caused by Mozilla/5.0 rv:0.9.4.1+ and its
Netscape plugin support implementation as I observe the same delay
here in
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8)
Gecko/20060110 Debian/1.5.dfsg-4 Firefox/1.5 Mnenhy/0.7.3.0
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051007
Debian/1.7.12-1
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040805
Netscape/7.2
and
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4.1) Gecko/20020508
Netscape6/6.2.3
but not in
Opera/8.51 (X11; Linux i686; U; en)
using the same plugin version each time, Java(TM) Plug-in 1.4.2_05-b04.
That delay occurs in Mozilla/5.0 only if the JVM has not been started
before by either browser; not on uncached reload, for example. (Once
running, here the process java_vm is not terminated/killed before the
respective browser process [group] is terminated/killed.)
Regarding said:
The DOCTYPE declaration is missing. said:
<head>
<title>Test</title>
<script language="JavaScript">
Should be
<script type="text/javascript">
See numerous previous discussions here.
`get' is potentially harmful as _JavaScript_ identifier since there is the
`get' keyword to define a getter:
{ document.form.text.value=document.zirkel.getString();
}
</script>
</head>
<body>
With the recommended changes above and below, it should be at least
<meta http-equiv="Content-Script-Type" content="text/javascript">
<script type="text/javascript">
function getValue(oInput)
{
if (getValue.o && oInput)
{
oInput.form.elements['text'].value = getValue.o.getString();
}
}
</script>
</head>
<h1>JavaScript Delay Problem</h1>
<p align="center">
<APPLET name="zirkel"
CODE="Test.class" WIDTH="200"
HEIGHT="100">
Should be at least
<applet id="zirkel" code="Test.class" width="200" height="100"></applet>
See also
<URL:
http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/using_tags.html>
(Take into account that the scripts used there are not to be recommended as
they are.)
`align="left"' is the default for this element and left-to-right text, and
therefore unnecessary to set here.
[...]
<form name="form" onSubmit="return false;">
The `action' attribute is missing.
<URL:
http://www.w3.org/TR/html4/interact/forms.html#h-17.3>
Following the recommendations above and below, the `name' attribute will no
longer be necessary to be set.
<p align="center">
<button onClick="get()">Get</button>
The same can be achieved more compatible and without annoying users without
client-side script support
<script type="text/javascript">
document.write('<input type="button"'
+ ' onclick="getValue(this);" value="Get">');
</script>
HTH
PointedEars