• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Fire input text event Without Loosing Focus

 
Steve Dyke
Ranch Hand
Posts: 1619
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have in mind a JSP with an input box. A user can scan a barcode to populate the box. Once the box is populated I need this data to feed into in select list on the form. How do I get the input box to fire an event once data is inserted into it with out any other user interaction?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about using 'onKeyup' handler for your text box and have it compare the length of the input box value and the expected barcode text length. When the desired length reached, use your handler to submit/move to the next input box.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic