By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 959 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Want to know print status. means whether user clicked on ok print or canceled printin

P: 3
Hi,
I am printing a page by javascript. but i want to know status of that print means whether that page got printed or not? means if user clicked ok on print popup i should be able to give user a success alert and if user canceled printing i should be able to give an alert to user that 'Unsuccesful'.
I have used print(); function.
Nov 13 '13 #1

✓ answered by Dormilich

HTML is not a programming language, jQuery *is* JavaScript. hence, no luck there.

your only chance were if your browser provides a print API, which AFAIK no one does (why should it? printing is the job of the browser, not of JS).

Share this Question
Share on Google+
4 Replies


Dormilich
Expert Mod 5K+
P: 8,639
unless your browsers provides an API to the print queue, youíre out of luck. OS operations (except for a few cases) are not accessible from JavaScript.
Nov 13 '13 #2

P: 3
So what to do? Please guide. Is it possible from HTML, Jquery?
Nov 13 '13 #3

Dormilich
Expert Mod 5K+
P: 8,639
HTML is not a programming language, jQuery *is* JavaScript. hence, no luck there.

your only chance were if your browser provides a print API, which AFAIK no one does (why should it? printing is the job of the browser, not of JS).
Nov 13 '13 #4

P: 3
ok thanks for ur time
Nov 14 '13 #5

Post your reply

Sign in to post your reply or Sign up for a free account.