I've been doing nothing but barcode apps for the last few weeks (warehouse
management and shipping system, all in CF) and here's an extremely helpful
tip:
Keyboard wedge scanners have the ability to be programmed and most will
come by default with a setting of adding a CR to each barcode scan. In IE,
pressing return will submit a form, so this works great.
But what happens when you want to scan more than one barcode? Javascript
to the rescue:
<SCRIPT LANGUAGE="JavaScript">
<!--
function checkForm(form) {
valid = false;
if (form.orderno.value.length > 0 &&
form.tracking.value.length > 0)
{ valid = true; }
else { form.tracking.focus(); }
return valid;
}
//-->
</SCRIPT>
This is from a page that waits for a order scan and a delivery
confirmation label scan.
This is in the form tag:
onSubmit="return checkForm(this);"
So, the javscript prevents the form from submitting until both fields are
filled AND moves the focus from the first field to the second after the
frist scan! Tada!
Hope that helps. That's been my little up my sleeve trick lately.
> What you want is called a wedge scanner, This type of scanner plugs in to
> your keyboard cables INBETWEEN your keyboard and your computer. The scanner
> then reads the barcode and decodes it and fills in the data on screen. The
> scanner WILL NOT go through and fill in all the data automatically in all
> your prompts on your screen. You have to trigger/scan each barcode prompt by
> prompt.
>
> What you are asking is very doable. We do it all the time for our
> Manufacturing clients when we set up barcoding processes for them to collect
> labor, part transactions etc.
>
> I have even played around with them (a little) in a intranet apllication,
> just to insure they would work okay
>
> Enjoy
>
> Bob Lehman
> New Horizon Mgmt and Consulting
> 440-542-0992
> [EMAIL PROTECTED]
> www.nhmac.com
> www.nhmac-user.com
> ----- Original Message -----
> From: "Rick Osborne [Mojo]" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Tuesday, August 21, 2001 6:09 PM
> Subject: RE: Bar Code Scan
>
>
> > Back when CueCats were all the rage, I wrote a CF app that would take the
> > input from it, decode it, and do neat things with the UPC. Being the geek
> > that I am, I didn't have much use for it beyond cataloguing my (comic)
> > books. But, it all really depends on your scanning hardware. The CueCat
> is
> > a keyboard shunt, so it inputs character data and is therefore pretty easy
> > to work with in a web context. If your scanner hardware is anything more
> > complex than that, you're going to end up having to write browser
> > plugins/ActiveX controls to get the data in, etc. As far as cost, CueCats
> > are free. Visit your local RadioShack or do a web search.
> >
> > -R
> >
> > http://www.rickosborne.org/CueCat/
> >
> > -----Original Message-----
> > From: Fuon See Tu [mailto:]
> > Sent: Tuesday, August 21, 2001 16:31
> > To: CF-Talk
> > Subject: Bar Code Scan
> >
> >
> > hey guys, I am working on a bar code scanning ticketing solution for a
> > certain festival. People can print their tickets online (it generates a
> gif
> > image of a bar code). What I wanted to know was how would the bar code
> > scanner work with the database? Is there some intermediatory software
> > involved? Is there some scripting involved? also how much does a simple
> > bar code scanner/software cost anyways?
> >
> > Ideally, i'd like the scanner person to be sitting in front of the puter
> > connected to the admin website, and when he scans the ticket, the info
> gets
> > pasted into a form on the site and runs the neccessary query. is that
> > possible? HEHEHE..
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists