43
Chapter 3 Programming Guide
3
Embedding of ePOS-Print API
The ePOS-Print API is provided so that ePOS-Print can be used from the JavaScript on the client side.
It is provided as JavaScript, and its file name is “epos-print-3.x.x.js”.
The ePOS-Print API is used by embedding epos-print-3.x.x.js into applications.
Preparation
To use the ePOS-Print API, place epos-print-3.x.x.js on the Web server.
Embedding into Web pages
Embed the script into the Web page by using the HTML <script> tags.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>TITLE</title>
<script type="text/javascript" src="epos-print-3.x.x.js"></script>
<script type="text/javascript">
function buildMessage() {
var builder = new epson.ePOSBuilder();
.
.
}
</script>
</head>
<body>
.
.
</body>
</html>
Embed
Summary of Contents for TM-T88V-i
Page 10: ...10 ...
Page 14: ...14 ePOS Print Canvas API Monochrome or Grayscale Monochrome ...
Page 160: ...160 ...
Page 258: ...258 ...