posted 16 years ago
I can't say I've tried this, but I would think something like this would work:
Use onkeypress handler to detect carriage return (whether from barcode reader or keyed by user). When CR occurs, set hourglass pointer, disable input, grab current value and submit ajax call. On response from ajax call (confirming action), reset pointer, reset and enable input box, and give focus.
"Make things as simple as possible, but no simpler." - A.Einstein