Hi,
Can anybody 'check and correct' the following code of java applet and
javascript.
Situation : A java applet parameter will call a javascript function and
receive a value return by the javascript.
Thanks in advance.
regards,
Friends.
Java Code:
public class TEST extends Applet
{
public void init()
{
String input = getParameter("getCode");
List list = new List();
add(list);
list.addItem(input);
}
HTML code:Quote:}
<html>
<head>
<title></title>
</head>
<SCRIPT LANGUAGE="JavaScript">
<!--
function temp()
{
var myCode;
myCode = "AER678";
return myCode;
// -->/nQuote:}
</SCRIPT>
<body bgcolor="ffffff" text="0000" link=0000ff vlink=ff0000>
<center>
<applet code="TEST.class" width=300 height=200>
<param name="getCode" value='javascript:temp();'>
</applet>
</body>
</html>
--
=========================================
Name : Megat Shamsul Nizam M. Nazin
Url : http://www.netshoppe.com.my
=========================================