wood burning stoves 2.0*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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

Fire input text event Without Loosing Focus

Steve Dyke
Ranch Hand

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

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.
I agree. Here's the link: http://aspose.com/file-tools
subject: Fire input text event Without Loosing Focus
Similar Threads
?? Is it possible to....
Comparing two string variables
The Onchange Event is Not Fireing for My Input Tag
JDialog question
problem in giving onChange event in s:combobox