Hi!
Herbert Pfleger wrote:
>
> I have found some example-code(only for netscape), it should work, but it
> doesn't work in my environment. may be you have more luck.
AFAICS, it might be so:
import java.awt.Graphics;
public class HelloWorld extends Applet
{
String myString;
public void init()
{
myString = new String("Thats my hello-text");
}
public void paint(Graphics g)
{
g.drawString(myString, 25, 20);
}
public void setString(String aString)
{
myString = aString;
repaint();
}
}
it's OK here
and
<html><head><title>Test</title>
</head><body>
<applet code="HelloWorld.class" name="Heho" width=150 height=25>
^^^^^^^^^^^
I'm not sure about dash using
</applet><br>
<script language="JavaScript">
<form name="In">
<input name="Text" type=text>
^^^^^^^^^^^^^^
<input type=button value="Test"
onClick="document.He-ho.setString(document.In.Text.value)">
^^^^^
capital letter here
</form>
</script>
</body></html>
--
Regards,
Sergey Vorobiev
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets