homepage Welcome to WebmasterWorld Guest from 54.167.249.155
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
Barcode Scanner and Web Form Submit
using barcode scanner to fill webform and submit
brainstormer




msg:4041216
 8:06 am on Dec 11, 2009 (gmt 0)

I have a barcode scanner that is configured to work with a order management system that when scanning a barcode will add ~~~0000 to the front and / to the end of the number.

I have a webform that we use to look up customer orders, product inventory. What I'd like to do is to be able to scan the order number into the form field and it will submit automatically but right now, when we scan a order number 12345 it will give ~~~00012345/

Is there a way to strip away the ~~~, leading 0's, and / and only submit 12345 and add a <enter> to automatically submit the form?

Please advise,

Joe

 

ogletree




msg:4043923
 5:45 am on Dec 16, 2009 (gmt 0)

You could do that with javascript. Have it strip away the numbers you don't want then have it submit form after it does the strip away.

txbakers




msg:4056376
 12:47 am on Jan 8, 2010 (gmt 0)

Also, you can program the scanner to not add those characters. That sounds like a scanner programming problem.

You can also do it with a script using the onSubmit routine of the Form.
In javascript you can do a box.value = String(v).substr(7,100) which would start at the first real character.

damon_cool




msg:4091639
 7:22 pm on Mar 4, 2010 (gmt 0)

Either re-setup the barcode reader, or change it on the backend. I don't advise using javascript on the page.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved