I have a magnetic card reader and a magnetic card that am using to read in text into an input field; yet the problem am facing is that this card is encoded with 15 characters that are read into the input field separately - triggering 15 different on e_Key events. Is there a way that i can wait until all the 15 character a fully read before i can proceed with that captured data? Thank you.
Announcement
Collapse
No announcement yet.
Help With Reading A Maganetic Card
Collapse
X
-
In that case, perhaps an alternative approach could be using a timer. Each time a new e_Key event is fired, check if the timer is running, starting it if not active, or resetting a counter if already active. Once the time passed since the last entry exceeds a predefined time, stop the timer and run whatever code you want using the current contents of the Input field.
In this manner you could have a variable amount of data in the Input, and the validation would always happen after a certain time of inactivity, when no new data is provided.
Ulrich
Comment
-
-
Comment