Apan
11-05-2003, 06:41 AM
Hi
Im trying to pass a String from a form via a javascript to an applet in another frame.
I have tried like this:
Script in the Form_frame:
{
var theText=document.theForm.theName.value;
parent.applet_frame.aScriptFunction(theText);
}
and then in another script in the Applet_frame:
function aScriptFunction(aText)
{
document.theApplet.aFunction(aText);
}
and Applet:
public void aFunction(String someText)
{
System.out.println("Applet: got text:"+someText);
}
Then I got a Java.lang.Exception error: aFunction{0}:There is no such method.
Any suggestions??
Im trying to pass a String from a form via a javascript to an applet in another frame.
I have tried like this:
Script in the Form_frame:
{
var theText=document.theForm.theName.value;
parent.applet_frame.aScriptFunction(theText);
}
and then in another script in the Applet_frame:
function aScriptFunction(aText)
{
document.theApplet.aFunction(aText);
}
and Applet:
public void aFunction(String someText)
{
System.out.println("Applet: got text:"+someText);
}
Then I got a Java.lang.Exception error: aFunction{0}:There is no such method.
Any suggestions??