Warning Older Docs! - You are viewing documentation for a previous released version of RhoMobile Suite.

Code128 Decoder

The Code128 Decoder is used to enable or disable the Code128 decoder.

Syntax

code128 (Decoder) <META> Syntax

<META HTTP-Equiv="scanner" content="Code128:[parameter]">

code128 JavaScript Object Syntax:
By default the JavaScript Object 'scanner' will exist on the current page and can be used to interact directly with the code128.
To Set code128 parameters via JavaScript use the following syntax: scanner.Parameter = Value;

e.g. scanner.code128 = Value;
Code128 Ruby Object Syntax:
By default the Ruby Object 'Scanner' will exist on the current page and can be used to interact directly with the Code128.
To Set Code128 parameters via Ruby use the following syntax: Scanner.Parameter = Value

e.g. Scanner.code128 = Value

Parameters

Items listed in this section indicate parameters, or attributes which can be set.

Name Possible Values Description Default Value
code128:[Value] enabled/disabled Enables/Disables the Code128 decoder. Device specific

Requirements

RhoElements Version 1.0.0 or above
Supported Devices All supported devices.
Minimum Requirements Scanner or Imager module and device that supports Code128.
Persistence Transient - Decoder settings are only guaranteed to persist until the Scanner is disabled

HTML/JavaScript Examples

The following example enables the scanner to read only Code128 labels:

<META HTTP-Equiv="scanner" Content="allDecoders:disabled">
<META HTTP-Equiv="scanner" Content="Code128:enabled">
<META HTTP-Equiv="scanner" Content="enabled">

Above example can also be written as shown below:

<META HTTP-Equiv="scanner" Content="allDecoders:disabled;Code128:enabled;enabled">

or

<META HTTP-Equiv="scanner-all_decoders" Content="disabled">
<META HTTP-Equiv="scanner-Code128" Content="enabled">
<META HTTP-Equiv="scanner-enabled" Content="SCN1">

The following example enables the scanner to read all labels except Code128:

<META HTTP-Equiv="scanner" Content="allDecoders:enabled">
<META HTTP-Equiv="scanner" Content="Code128:disabled">
<META HTTP-Equiv="scanner" Content="enabled">
Back to Top