Handling out of paper error

43 views
Skip to first unread message

james.o...@klio.co.uk

unread,
Apr 8, 2013, 5:59:20 AM4/8/13
to jzebra...@googlegroups.com
Hi Everyone,

We've successfully got jZebra working and it's a great interface.

The only thing we're struggling with is how to handle the times when the printer runs out of paper. When this happens the web page hangs and an error message appears saying the script is taking too long etc. How do we handle this exception so that we can abort the print and display a message to replace the paper and try again?

Thanks,

James

Tres Finocchiaro

unread,
Apr 8, 2013, 10:46:01 AM4/8/13
to jzebra...@googlegroups.com
Hi James,

 how to handle the times when the printer runs out of paper

I haven't tested for this scenario before, but I would expect it to show in the Exception message.

error message appears saying the script is taking too long etc

This is JavaScript and is usually caused by a while loop.  Can you try to use "loading.html" and see if it's more responsive?  The "sample.html" has some while loops in it that are warned against using because they can cause a deadlock in the browser under certain scenarios.

-Tres

--
- Tres.Fin...@gmail.com

james.o...@klio.co.uk

unread,
Apr 9, 2013, 1:46:03 AM4/9/13
to jzebra...@googlegroups.com
Thanks Tres, will test in a few hours today and report back what I find from sample.html

Michael Luz

unread,
May 3, 2013, 5:29:31 AM5/3/13
to jzebra...@googlegroups.com
Hi James, u have any luck detecting out of paper? Please share with us your solution.
 
Thanks.
Mike
Reply all
Reply to author
Forward
0 new messages