I got a problem. I really need your solutions.
Here is the defined problem:
1/ html:
<form name="frm" action="">
<h3>Enter some data:</h3>
<table>
<tr><td>Name: </td>
<td><input type="text" name="txname" value="" size"20" /></td>
</tr>
<tr><td> </td>
<td><input type="button" name="send" value="Send" /></td>
</tr>
</table>
</form>
<applet name="myapplet" code="AppletParam.class" width="320" height="120">
<param name=displayName value="sakura">
</applet>
2/ Is it possible to send data from form to applet tag? In my case I need to send from txname
to applet. For example, <param name=displayName value="{txname}">
.
Any ideas? please help
param
elements for the applet containing the data in the form fields. Or alternately write the attributes of the deployment toolkit script. This might be done with:-
There are several ways to do this:
public void setName(String name)
, do the needy to reflect the new name in applet. var myApplet = document.getElementById('myAppletId');
click
or submit
,etc whatever suits your scenario, myApplet.setName('new name here');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.