Overview
The Gs1dataBar META Tag is used to enable or disable the gs1dataBar decoder.
Syntax
| gs1dataBar (META Tag) <META> Syntax |
|---|
<META HTTP-Equiv="scanner" content="gs1dataBar:[parameter]"> |
| gs1dataBar JavaScript Object Syntax: |
|---|
| By default the JavaScript Object 'scanner' will exist on the current page and can be used to interact directly with the gs1dataBar. |
|
To Set gs1dataBar parameters via JavaScript use the following syntax: scanner.Parameter = Value;
e.g. scanner.gs1dataBar = Value; |
Parameters
Items listed in this section indicate parameters, or attributes which can be set.
| Name | Possible Values | Description | Default Value |
|---|---|---|---|
| gs1dataBar:[Value] | enabled/Disabled | Enables/Disables the gs1dataBar decoder. | Device specific |
Remarks
Legacy
The gs1dataBar decoder was previously known as rss14. Code written for the rss14 decoder will be compatible with the new naming convention.
Requirements
| RhoElements Version | 2.1 or above |
|---|---|
| Supported Devices | All supported devices. |
| Minimum Requirements | Scanner or Imager module and device that supports gs1dataBar. |
| 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 gs1dataBar labels:
<META HTTP-Equiv="scanner" Content="allDecoders:disabled">
<META HTTP-Equiv="scanner" Content="gs1dataBar:enabled">
<META HTTP-Equiv="scanner" Content="enabled">
Above example can also be written as shown below:
<META HTTP-Equiv="scanner" Content="allDecoders:disabled;gs1dataBar:enabled;enabled">
or
<META HTTP-Equiv="scanner-all_decoders" Content="disabled">
<META HTTP-Equiv="scanner-gs1dataBar" Content="enabled">
<META HTTP-Equiv="scanner-enabled" Content="SCN1">