Welcome Guest, Not a member yet? Register   Sign In
Form Auto Submit
#1

[eluser]codemonkey[/eluser]
Anyone have experience with this? I am looking to automate the forum submission when using a bar code scanner and the form helper.

I think having a param check for a certain length within a form field would be the best way to implement.

Ideas on the setup and what to base the submission on? What would I use to make the auto submission work? I think JS will be needed.

Thanks
#2

[eluser]Stefan Hueg[/eluser]
I'd say jQuery for simplicity. Then put an event listener to the inputs keyUp event and check the length of your input's variable. If it's in a certain range, call $('#my_form').submit();
#3

[eluser]Aken[/eluser]
Javascript is the only way you'll get it to go automatically. Server side code won't help. Stefan's advice is how I would do it.




Theme © iAndrew 2016 - Forum software by © MyBB