views:

104

answers:

1

I'm trying to make a cash drawer kick open. The command that needs to be sent to the drawer, by way of the receipt printer, is "chr(27).chr(112).chr(0).chr(100).chr(250)". Is there a way to send this command through javascript or other web based language. I want the cash drawer to only open only during certain receipt prints.

+2  A: 

You can't print from javascript within a browser, just open a print dialog to print a page. surely if the draw opens via the printer then include the code in the receipt print out. Or are you just trying to hack into a POS :-)

pmc