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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shrikeshk9
    New Member
    • Nov 2013
    • 3

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

    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.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    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.

    Comment

    • Shrikeshk9
      New Member
      • Nov 2013
      • 3

      #3
      So what to do? Please guide. Is it possible from HTML, Jquery?

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        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).

        Comment

        • Shrikeshk9
          New Member
          • Nov 2013
          • 3

          #5
          ok thanks for ur time

          Comment

          Working...