16
rated 0 times
[
21]
[
5]
/ answers: 1 / hits: 17349
/ 13 Years ago, thu, september 15, 2011, 12:00:00
I have a form with an input text field which imports data every couple of seconds and display it in the form field , let us say :
<input name=code id=code type=text size=64 maxlength=128 />
and a submit button and my form has the formname form1.
I want the submit button to be clicked as soon as the data in the form field is changed.
I did try to do the following. In the header I did add the follwoing javascript:
<SCRIPT LANGUAGE=javascript>
function send_data()
{
document.form1.submit();
}
</SCRIPT>
and on the form :
<input name=code id=code type=text size=64 maxlength=128 onchange=send_data(); />
but it didn`t work..
Any help ?
Thanks
More From » html