Communication With Web Browsers; Html - CAB A Series Programming Manual

Thermal / thermal transfer printers
Hide thumbs Also See for A Series:
Table of Contents

Advertisement

PRODUCT MARKING AND BARCODE IDENTIFICATION

Communication with Web Browsers:

A-Series printers have a web server which is usually used for administration, but can also be used to
access data like images or HTML pages from the card. So it is only logical to seek a way to transmit
data from the browser to the printer. This is normally done by CGI scripts using forms. We do it the
same way :-) You can however not define CGI scripts your own, but we provide a way to get form
data into your abc program:

HTML

You simply define a form in your HTML page which uses get_form.cgi as ACTION. Example:
<form action="/get_form.cgi" method="post">
<input type="hidden" name="nextpage" value="thanks.htm">
<input type="text" name="example">
<input type="submit" value="Send data">
</form>
This form lets the user enter some data in a text field called „example". After clicking the „Send data"
button, the form content is sent from the browser to the web server and parsed there. Then the
extracted data is put into the input buffer which can be read by abc or directly by JScript. There
are two special field names available:
- nextpage this defines the name of the html page which is loaded after sending the form.
Default is index.htm.
- jscript
Can be used to send a JScript command before the data. So you can e.g. send
a „M l lbl" command before the data of the form.
A more complex example showing most of the possibilities of the CGI interface is the „cinema ticket"
program.
[TABLE OF CONTENTS] [COMMAND LIST]
242
[ESC] [i] [L] [S]
cab Produkttechnik GmbH & Co KG
242
This
function is
available
for:
A-series
Apollo
no
Hermes
no
M-series
[INDEX]

Advertisement

Table of Contents
loading

This manual is also suitable for:

Appolo seriesHermes seriesM series

Table of Contents