open method
Enables status event operation. (in firmware Ver.1.2 and later)
Sends the status of the printer specified by the address property using an event.
Updates the status at the interval specified by the interval property.
Syntax
open();
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.oncoveropen = function () {
alert('coveropen');
};
function startMonitor() {
epos.open();
}
function stopMonitor() {
epos.close();
}
//-->
</script>
140