|
||||||||
|
||||||||
|
Home: Products: Barcode Components: Native JavaScript AJAX Barcode Generator: User Manual |
INDEX:
The Native JavaScript AJAX Barcode Generator is a script file that may be easily inserted into HTML and AJAX applications to create bar code images for display in HTML or text objects. Once implemented, no other components or fonts need to be installed to create barcodes; it is the complete barcode generator.
The Native Barcode Generator supports the following symbologies:
Installing the Native JavaScript Barcode Generator is a fairly easy process. Several generators are provided for different bar code types.
Properties and Symbology Options |
All functions listed below are provided as a single JavaScript file preceded with IDAutomation_JavaScriptBarcode_.
Additional properties may be modified if necessary as a
parameter; for example:
IDAutomation_JavaScriptBarcode_C128("12345678",8,4,true)
For all functions below, the data type returned is a string formatted for HTML and the input type for DataToEncode is a string.
To return the barcode image only without HTML formatting commands, set XDimensionPoints to equal "0" and select a unicode mono-spaced font such as Courier New or Lucida Console at 3 to 5 points for the text field where the the barcode image is returned.
Function | Notes |
C128(DataToEncode, BarHeight, XDimensionPoints, ApplyTilde) | This is a "Code
128 Auto" function that will automatically encode any data from ASCII
1 to ASCII 127. It will automatically switch to character set C to encode
numbers as necessary. To encode alpha-numeric UCC/EAN-128, ASCII
202 or character Ê is entered as the FNC1 before each AI. When any
barcode begins with the FNC1, it automatically starts in Set C as required. For example, the UCC number of (8100)712345(21)12WH5678 should be entered as a formula of: IDAutomation_JavaScriptBarcode_C128 ("Ê8100712345Ê2112WH5678",6,4,true) or IDAutomation_JavaScriptBarcode_C128 ("Ê" & [Table1.DataField1] & "Ê" & [Table1.DataField2],6,4,true) More information about AI's and UCC/EAN-128 is located here. If ApplyTilde is set to True, the tilde will be processed. ApplyTilde is False by default in this function. |
C128HR(DataToEncode, ApplyTilde) | If creating Code 128 barcodes
which need the text formatted, use this function. It is generally only used
to format the text for UCC/EAN barcodes according to IDAutomation's
Code128
Barcode FAQ. For example: IDAutomation_JavaScriptBarcode_C128HR ("Ê" & "8100712345" & "Ê" & "2112345678",true) If ApplyTilde is set to True, the tilde will be processed. ApplyTilde is True by default in this function. |
C128a(DataToEncode, BarHeight, XDimensionPoints) | Formats output to set A of Code-128. Use caution with this option because any lowercase character creates a function. Use the letter "i" for a tab and "m" for a return. For most purposes, it is better to use the C128() function instead of this one. |
C128b(DataToEncode, BarHeight, XDimensionPoints) | Formats output to Code-128, character set B. For most purposes, it is better to use the C128() function instead of this one. |
C128c(DataToEncode, BarHeight, XDimensionPoints) | This code128 function "interleaves" even numbers into pairs for high density. An even number of digits is required. For most purposes, it is better to use the C128() function. |
C39(DataToEncode, BarHeight, XDimensionPoints, N_Dimension, IncludeCheckDigit) | A MOD 43 checksum will be calculated if IncludeCheckDigit is true. For example: IDAutomation_JavaScriptBarcode_C39 ("123456789", 8, 3, 3, true) |
Codabar(DataToEncode, BarHeight, XDimensionPoints, N_Dimension, StartChar, StopChar) | StartChar and StopChar are also required as the start and stop characters. Valid start and stop characters are A, B, C and D. |
I2of5(DataToEncode, BarHeight, XDimensionPoints, N_Dimension, IncludeCheckDigit) | An even number of digits is required. A MOD 10 checksum will be calculated if IncludeCheckDigit is true. |
MSI(DataToEncode, BarHeight, XDimensionPoints, N_Dimension, IncludeCheckDigit) | Formats output for bar-coding in the MSI/Plessey symbology. A MOD 10 checksum will be calculated if IncludeCheckDigit is true. |
Postnet(DataToEncode, IncludeCheckDigit) | DataToEncode is a single string of Zip, Zip + 4 or Zip + 4 + Delivery Point. A MOD 10 checksum will be calculated if IncludeCheckDigit is true. |
UCC/EAN-128 Barcode Examples for encoding UCC/EAN-128 Barcodes: | |
USPS EAN128 | The following formula will create USPS_EAN128
in Code 128: IDAutomation_JavaScriptBarcode_C128 ("Ê" & "912312214123442441134" & "~m19", 8, 4, true) Where the number of 912312214123442441134 may be replaced with a data field, for example: IDAutomation_JavaScriptBarcode_C128 ("Ê" & [Table1.DataField1] & "~m19", 8, 4, true) This number encoded is made up of the following: 2 digit service code + 9 digit customer ID + 8 digit sequential package ID + MOD 10 check digit. For more information, refer to the USPS portion of the Code 128 FAQ and the UCC/EAN portion of the Code128 Barcode FAQ. |
SCC14 | The following formula will create SCC14
in Code 128: IDAutomation_JavaScriptBarcode_C128 ("Ê" & "013001234567890" & "~m13", 8, 4, true) For more information, refer to the UCC/EAN portion of IDAutomation's Code128 Barcode FAQ. |
SSCC18 | The following formula will create SCC18
in Code 128: IDAutomation_JavaScriptBarcode_C128 ("Ê" & "0000801234999999999" & "~m17", 8, 4, true) For more information, refer to the UCC/EAN portion of IDAutomation's Code128 Barcode FAQ. |
Description of the parts of the functions:
Point Size | Approximate X Dimension |
2 | 08 Mils |
3 | 12 Mils |
4 | 16 Mils |
5 | 20 Mils |
6 | 24 Mils |
7 | 28 Mils |
8 | 32 Mils |
Common Problems and Solutions:
Other Barcode Software Products |
IDAutomation has many other products to offer for barcoding purposes including:
. |
Product Quick Links: [Barcode Fonts | Font Tools | Components | Label Software | Scanners | Printers | RFID | Product Index] |
Copyright © 2006-2007 IDAutomation.com, Inc. IDAutomation and BizFonts are registered trademarks of IDAutomation.com, Inc. All other trademarks mentioned are the property of their respective owners.
Over 70% of Fortune 100 companies use IDAutomation's products to automate their businesses. |