Can you configure the scanner software to prepend the barcode input with an
ASCII code not corresponding to a key on the keyboard?




-----Original Message-----
From: Eric Haskins [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 14, 2007 12:34 PM
To: CF-Talk
Subject: Re: capturing barcode keystrokes


I have an app I wrote in PHP that scans pharmaceuticals in and I used the
above javascript method to always set focus to the text box

I dont know of any other way for the browser to see the keys. I guess you
could use a javascript event listener to watch for keystrokes but even then
how would you determine it was the scanner or the user typing??

Eric Haskins



On 9/14/07, James Holmes <[EMAIL PROTECTED]> wrote:
>
> 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/
> >
> >
> >
> >
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288508
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to