Hi,
thanks in advance to all those who will help
so i created a web user control that has two html input boxes in it. I also have the following java function in the ascx file (not the code behind file). Once implemented the page give me error when i enter the 3 number on in the first input box.
<script language="javascript">
<!--
function autotab(original, destination){
if(original.getAttribute&&original.value.length==original.getAttribute("maxlength")) destination.focus()
}
-->
</script>
<INPUT class="tb24x16" id="html_tb_ph1_1" onkeyup="autotab(this, Form1.html_tb_ph1_2)" type="text" maxLength="3" size="1" name="html_tb_ph1_1" runat="server">
<INPUT class="tb24x16" id="html_tb_ph1_2" onkeyup="autotab(this, document.Form1.html_tb_ph1_3)" type="text" maxLength="3" size="1" name="html_tb_ph1_2" runat="server">
<INPUT class="tb32x16" id="html_tb_ph1_3" onkeyup="autotab(this, document.Form1.html_tb_ph1_4)" type="text" maxLength="4" size="1" name="html_tb_ph1_3" runat="server">
<INPUT class="tb32x16" id="html_tb_ph1_4" type="text" maxLength="4" size="1" name="html_tb_ph1_4" runat="server"></FONT></TD></TR>
thanks in advance to all those who will help
so i created a web user control that has two html input boxes in it. I also have the following java function in the ascx file (not the code behind file). Once implemented the page give me error when i enter the 3 number on in the first input box.
<script language="javascript">
<!--
function autotab(original, destination){
if(original.getAttribute&&original.value.length==original.getAttribute("maxlength")) destination.focus()
}
-->
</script>
<INPUT class="tb24x16" id="html_tb_ph1_1" onkeyup="autotab(this, Form1.html_tb_ph1_2)" type="text" maxLength="3" size="1" name="html_tb_ph1_1" runat="server">
<INPUT class="tb24x16" id="html_tb_ph1_2" onkeyup="autotab(this, document.Form1.html_tb_ph1_3)" type="text" maxLength="3" size="1" name="html_tb_ph1_2" runat="server">
<INPUT class="tb32x16" id="html_tb_ph1_3" onkeyup="autotab(this, document.Form1.html_tb_ph1_4)" type="text" maxLength="4" size="1" name="html_tb_ph1_3" runat="server">
<INPUT class="tb32x16" id="html_tb_ph1_4" type="text" maxLength="4" size="1" name="html_tb_ph1_4" runat="server"></FONT></TD></TR>