free hit counter

Onpaperok Event; Onpapernearend Event - Epson TM-T88V-i User Manual

Epos-print api
Hide thumbs Also See for TM-T88V-i:
Table of Contents

Advertisement

onpaperok event

Registers a callback function to obtain a paper remaining event. (in firmware Ver.1.2 and later)
Object type
Function ()
Example
<script type="text/javascript" src="epos-print-3.x.x.js"></script>
<script type="text/javascript">
<!--
var address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer';
var epos = new epson.ePOSPrint(address);
epos.onpaperok = function () {
alert('paperok');
};
epos.open();
//-->
</script>

onpapernearend event

Registers a callback function to obtain a paper near end event. (in firmware Ver.1.2 and later)
Object type
Function ()
Example
<script type="text/javascript" src="epos-print-3.x.x.js"></script>
<script type="text/javascript">
<!--
var address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer';
var epos = new epson.ePOSPrint(address);
epos.onpapernearend = function () {
alert('papernearend');
};
epos.open();
//-->
</script>
156

Hide quick links:

Advertisement

Table of Contents
loading