aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Fire input text event Without Loosing Focus Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Fire input text event Without Loosing Focus" Watch "Fire input text event Without Loosing Focus" New topic
Author

Fire input text event Without Loosing Focus

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1446
    
    1
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

Joined: Dec 11, 2004
Posts: 13410

Moving to HTML / Javascript


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Fire input text event Without Loosing Focus