hi guys its me again the daniweb's number one fan ^^

how to read a barcode using javascript and if i scan the barcode it will display the time when it first scanned.......dis is what i mean

when i scan it once it will display the time in and when i scan it second time it will display out ...can someone help me with this coz honestly i have no knowledge about javascript ^^

Member Avatar for stbuchok

Firstly, when you scan something with a barcode scanner it it reads it in as plain text. All you need it a textbox, have focus set to the textbox and you will get what the scanner scans.

Secondly, you should probably learn JavaScript. This should get you started http://www.w3schools.com/js/default.asp

um do im not need some sort of connection string for scanner and the script?

Member Avatar for stbuchok

Shouldn't, it's an input device, just like a keyboard, instead of pressing keys, you scan something and it types the output to the screen.

uhhh ic thankss by the way

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.