Hi,
I'm trying to create a function that allows me to append the character at input text and display them on the div tag below. But the screen shouldn't refresh, therefore I'm using AJAX.
But I can't seem to get it done, not really familiar with AJAX. Wonder if anyone here can help me out.
Below is the code:
I'm trying to create a function that allows me to append the character at input text and display them on the div tag below. But the screen shouldn't refresh, therefore I'm using AJAX.
But I can't seem to get it done, not really familiar with AJAX. Wonder if anyone here can help me out.
Below is the code:
Code:
<HTML>
<HEAD>
<TITLE>Stock Count Task Generation</TITLE>
<SCRIPT LANGUAGE='javascript1.2'>
function addOwner(id, val) {
var objOutput = document.getElementById(id);
objOutput.innerHTML = val;
}
</SCRIPT>
</HEAD>
<BODY>
<FORM ACTION="WWW_WMS_SCNT.PROC_SCNT" METHOD="POST" name="form1">
<TABLE >
<TR>
<TD>
<INPUT TYPE="text" NAME="in_owner_code2" id="test1" class="defaultText" SIZE="10" MAXLENGTH="10" onFocus="window.status='Select the Owner Code'; return true;" onBlur="window.status=''; return true;">
<INPUT TYPE="button" VALUE="Add" class="smallButton" onClick="addOwner(in_owner_code_range,this.form.in_owner_code2.value);" name="owner_code_range_add">
</TD>
</TR>
<TR>
<TD>
<DIV ID="in_owner_code_range"></DIV>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
Comment