Print button in browser

39 views
Skip to first unread message

gla...@gmail.com

unread,
Feb 7, 2013, 1:21:16 PM2/7/13
to webc-...@googlegroups.com
Hi, is there any way for me to show a Print button in the browser toolbar, possibly next to the Home button? I have printing set up and working, but I'd prefer the button as it's more user friendly than requiring users to do Ctrl+P

Thanks

Kai Hendry

unread,
Feb 8, 2013, 1:17:00 AM2/8/13
to webc-...@googlegroups.com
How about adding <button onclick="print();">Print</button> to your Web
application?

The problem is, I think the printer icon should show only if you can
actually print to a printer. Otherwise it would be confusing. Testing
there is A) actually a printer to print to B) that you can actually
print to it, is a bit tricky.

Perhaps another API, like "showprintbutton"?

I've created https://github.com/Webconverger/webc/issues/140

There is also another print usability related issue here:
https://github.com/Webconverger/webc/issues/135

Be great to get some contributions here. Kind regards,

gla...@gmail.com

unread,
Feb 8, 2013, 6:28:02 PM2/8/13
to webc-...@googlegroups.com, hen...@webconverger.com

> How about adding <button onclick="print();">Print</button> to your Web application? 
I'm setting up some kiosks to allow users to browse and print from arbitrary websites, so this isn't an option.

I certainly understand your concern about having the button show only when it's actually possible to print. 

I don't have the expertise to implement printer detection myself. Something to note, though: when the user hits Ctrl+P to bring up the Print dialog, each printer in the list has a status associated with it. If the kiosk is able to print to a printer, the status for the printer will either be blank or it'll say "Ready to print". If the kiosk is unable to print to a printer, the status shows an error message (i.e. "Unable to connect", etc). Perhaps there's a way to check this status via shell script, and if at least one printer is "ready", show the print button?

Until a practical way to test for a working printer setup is found/implemented, I think a "printbutton" API keyword would be the best solution.
Reply all
Reply to author
Forward
0 new messages