logoalt Hacker News

bluedinotoday at 1:25 PM1 replyview on HN

We had a contractor write a replacement for some green-screen software that we ran for years. The replacement was of course a web interface, written in PHP, and nicely themed and all that was great in 2005.

We kept running into all kinds of weird issues when importing data back into the legacy system. Of course, after we started looking into it, I narrowed all the issues down to the same two users.

I don't remember exactly what it was, but users would hit a certain key on the keyboard at the end of every field, before they used the mouse to click on the next field and enter more data. This resulted in an undesired character at the end of every field!

I realized exactly what was going on as I watched a person fill out the form and submit it.

  "Why are you doing that!"

  "Doing what?"

  "Hitting the space bar (or whatever key it was) every time you fill out a field!"
Of course, in the old system you had to hit that key to save each field as you entered it.

shrug


Replies

ErroneousBoshtoday at 4:39 PM

So how do you fix it? Bit of javascript to trap the key and emulate the behaviour, dropping them to the next field?