I'm newbie in terms of Javascript. Here's my problem:
I wish to capture credit card information from a card reader and then process it. So far, I've been able to capture dummy credit card data in an HTML textbox field - its no rocket science actually, 'cos the card reader input is just a set of keyboard events when a card is swiped through a card reader. The issue is that it works only when there is a cursor focus
on a text field. If i turn the textfield into a read only box, it doesn't work - which is my exact requirement. I should be able to mask the input, show a couple of *
s and I should be able to make the field non-editable. I'm hoping this could be done using a transparent div
placed on the textbox - but I have no idea how that can be achieved.
I'm open to other ideas too.