http://www.perlmonks.org?node_id=898508


in reply to RFC: Algorithm::CouponCode

Good job! I noticed on the demo page my cursor did not automatically advance after entering four characters in the second box (I'm using IE 8 with JavaScript enabled). I had to press tab to advance or click in the last box. Also, the first box does not turn red after the first character is entered, like the other boxes do.

"Its not how hard you work, its how much you get done."

Replies are listed 'Best First'.
Re^2: RFC: Algorithm::CouponCode
by grantm (Parson) on May 19, 2011 at 21:38 UTC

    It turns out that my Javascript was not properly aligned with the focus change events generated by IE. The input boxes should not have been going red or green until all 4 characters had been entered - that bug should be fixed now. I wasn't able to reproduce your problem with the cursor failing to auto-advance from the second box. Thanks for the feedback.