Hi, Im trying to get some javascript to retrieve some data from an applet when a submit button is pressed and then posted to a following page.
This is the code I have and I dont think this is working correctly. Could you please advise where I am going wrong please:
[CODE]<head>
<script language=”JavaScript”>
<!–
function getValue(obj){
var textBox = document.getElementById (obj)
textBox.value =document.applets[0].getLHost();
}
//–>
</script>
</head>
<applet code=”support” width=”500″ height=”600″ align=”top”>
</applet>
<form name=”form1″ method=”post” action=”nextpage.asp” onsubmit=”getValue(‘SumBox’)”>
<input type=”text” name=”Price” id=”SumBox” value=”0″ size=”5″ readonly>
<input name=”More Info” type=”button” value=”More Info”>
</form>