I have an applet that is declared as follows in a JSP page.
<OBJECT classid="clsid:CAFEEFAC-0014-0002-0008-ABCDEFFEDCBA"
width="650" height="530" align="baseline"
codebase="http://java.sun.com/update/1.4.2/jinstall-1_4_2_08-windows-i586.cab">
<PARAM name="code" value="IPETETApplet.class">
<PARAM name="name" value="IPETET">
<PARAM name="id" value="IPETET">
<PARAM name="type" value="application/x-java-applet;jpi-version=1.4.2">
<PARAM name="archive" value="Sipetet.jar,SIPETETclient.jar,Swsse.jar,Swebserviceclient+ssl.jar,BST.jks">
No Java 2 SDK, Standard Edition v 1.4.2_08 support for APPLET!!
</OBJECT>
And a "test form" with one button in it as follows.
<form name="form2" action="">
<input type="submit" value="TestIt!" name="SubmitButton"
onKlick="testApplet()">
</form>
Note that I had to spell the above Javascript event as onKlick to get this message posted on JavaRanch.
Here is my Javascript function
function testApplet()
{
returnStr = document.applets[0].testUserHandler();
alert(returnStr);
return null;
}
In my applet, the method "testUserHandler()" just returns a string.
This all seems to work well (i.e. I see the ALERT window pop up with the correct text), *EXCEPT* that my applet's init() method is called after every invocation of my Javascript function testApplet(). How do I set up my application so that the applet's method is called, but the init() method isn't called?
Thanks in advance.
<OBJECT classid="clsid:CAFEEFAC-0014-0002-0008-ABCDEFFEDCBA"
width="650" height="530" align="baseline"
codebase="http://java.sun.com/update/1.4.2/jinstall-1_4_2_08-windows-i586.cab">
<PARAM name="code" value="IPETETApplet.class">
<PARAM name="name" value="IPETET">
<PARAM name="id" value="IPETET">
<PARAM name="type" value="application/x-java-applet;jpi-version=1.4.2">
<PARAM name="archive" value="Sipetet.jar,SIPETETclient.jar,Swsse.jar,Swebserviceclient+ssl.jar,BST.jks">
No Java 2 SDK, Standard Edition v 1.4.2_08 support for APPLET!!
</OBJECT>
And a "test form" with one button in it as follows.
<form name="form2" action="">
<input type="submit" value="TestIt!" name="SubmitButton"
onKlick="testApplet()">
</form>
Note that I had to spell the above Javascript event as onKlick to get this message posted on JavaRanch.
Here is my Javascript function
function testApplet()
{
returnStr = document.applets[0].testUserHandler();
alert(returnStr);
return null;
}
In my applet, the method "testUserHandler()" just returns a string.
This all seems to work well (i.e. I see the ALERT window pop up with the correct text), *EXCEPT* that my applet's init() method is called after every invocation of my Javascript function testApplet(). How do I set up my application so that the applet's method is called, but the init() method isn't called?
Thanks in advance.