There's no way of knowing whether the keys come from the barcode scanner or the user's keyboard, unless you have a special character programmed into the scanner as the start and end of the barcode sequence (a character that can't be typed by the user with any ease - have a look at the ascii set for these).
On 9/14/07, Chad Gray <[EMAIL PROTECTED]> wrote: > Still kind of clunky... Anyway to not have to worry about focus on the text > input at all? Just capture the keys and submit them to the action page? > > Thanks for the reply! > Chad > > > -----Original Message----- > From: James Holmes [mailto:[EMAIL PROTECTED] > Sent: Friday, September 14, 2007 10:14 AM > To: CF-Talk > Subject: Re: capturing barcode keystrokes > > You'll need to set the focus of the text input via javascript. > > On 9/14/07, Chad Gray <[EMAIL PROTECTED]> wrote: > > Anyone have tips on capturing the keystrokes that come off of a barcode > > scanner? > > > > I would have the user clink into a text area, but that is clunky. > > > > I suppose this is more of a javascript thing. > > -- > mxAjax / CFAjax docs and other useful articles: > http://www.bifrost.com.au/blog/ > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288477 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

