This is really basic stuff. I am trying to call a method in an applet from a javascript. The applet method just returns a string. It works fine. It's simple. It took five minutes. HOWEVER, it works in every browser except one: Internet Explorer 5.0 on a Macintosh. I can't figure out why.
HTML applet code:
--------------------------
<applet code="excerpt.class" width="274" height="181" name=theapplet></applet>
javascript function:
--------------------------
function callJava()
{
var test = document.theapplet.test()
document.theform.thefield.value=test;
}
applet method:
--------------------------
public String test()
{
String returnStr = "";
for (int j=0; j<15;j++)
{
for (int i=0; i<15;i++)
{
if (theArray[ i ][j])
{
returnStr += 1;
}
else {returnStr += 0;}
}
}
return returnStr;
}
Anyone? Anyone?
HTML applet code:
--------------------------
<applet code="excerpt.class" width="274" height="181" name=theapplet></applet>
javascript function:
--------------------------
function callJava()
{
var test = document.theapplet.test()
document.theform.thefield.value=test;
}
applet method:
--------------------------
public String test()
{
String returnStr = "";
for (int j=0; j<15;j++)
{
for (int i=0; i<15;i++)
{
if (theArray[ i ][j])
{
returnStr += 1;
}
else {returnStr += 0;}
}
}
return returnStr;
}
Anyone? Anyone?