JavaScript Library

How to Buy

  • Find a Sales Representative
  • Have a Sales Representative Contact Me
  • Request a Demo
  • Get a Quote

Code maintains a library of JavaScript examples for your use. JavaScript is used to manipulate data, create custom screens, control Objects, and control the firmware settings (physical attributes) of Code  barcode readers. By downloading a JavaScript to the simulator, these examples can be copied or used as a reference for building a custom JavaScript application. Some of the examples are fully contained and can be used in Code barcode readers 'as is' while others are 'snippets' showing how to use the JavaScript Objects and Methods created by Code to control the reader.

Should you need JavaScript Programming assistance, learn more about Code's Certified JavaScript Developers.

While the development tools and example JavaScripts are distributed free of charge, all Code readers must have an Embedded JavaScript Rule Runner license key (XML-ER1) loaded before any of these examples or any other custom JavaScript can be loaded onto a reader. Please contact your local distributor or Code to purchase this license key.

To initiate the download of a JavaScript (.js) file, click on the desired file name corresponding with the JavaScript Description.

JavaScript Example Description
File Name

Process steps for setting up an inventory list; from a simple "Hello World" display to a completed application.

J001_SimpleInv1.js
J002_SimpleInv2.js
J003_SimpleInv3.js
J004_SimpleInv4.js
J006_SimpleInv6.js
J007_SimpleInv7.js

Overload the onDecode function and modify decode data three different ways.

J008_onDecodeOverload.js

Parse decode data, check for correct format, and display a count of recognized barcodes captured.

J009_Tradeshow.js

Write settings in JavaScript and reconnect reader after changing communication settings in JavaScript.

J010_specialSettings.js

Build a form and display it in CodeViewer.

J011_buildForm.js

Similar to J011_buildForm.js; uses a button for functionality.

J012_buildFormEdit.js

Place a softkey on the CodeViewer Ready screen to run an application.

J013_readyShowOverload.js

Use menus and forms to capture and send three different sizes of pictures; display instructions for each type of picture to be taken.

J014_PictureApp.js

Overload store.processData() to add <CR><LF> suffix.

J015_SuffixCrLf.js

Overload onDecode function to add <Enter> suffix.

J016_SuffixEnter.js

Overload onDecode; use regular expression to modify data based on symbology.

J017_onDecodeSymbology.js

Overload onCommand function, search for all .dat files, delete .dat files after successful upload.

J020_sendStorageFiles.js

Similar to J014_PictureApp.js; includes reader.onIdle line to beep reader when ‘X' command completes.

J021_onIdleOverload.js

Use JavaScript Date object to add date suffix to data.

J023_date_timeSuffix.js

Work around for executing a command within a command.

J024_settingFlag.js

Code grants free license to any user of the JavaScript files offered on this web page. Click here to read Code's notice regarding copyright and grant of license.