Script to count number of prints current windows

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • alfarias
    Corporal

    • Apr 2009
    • 14

    Script to count number of prints current windows

    Hi everybody!

    Can you help with a script to show the number of prints of web page (current window)?

    Thanks a lot!

    ALEX FARIAS
    VodaHost Customer: hrvccunk
  • alfarias
    Corporal

    • Apr 2009
    • 14

    #2
    Re: Script to count number of prints current windows

    Hi everybody!

    Who can help me?

    I need a script to count the times that a current windows was printed. This is a way to control what effective is my web page about coupons of discounts and show it to my customer.

    Thanks.

    ALEX FARIAS
    I am VodaHost customer: User hrvccunk
    www.nuestroscupones.com

    Comment

    • alfarias
      Corporal

      • Apr 2009
      • 14

      #3
      Re: Script to count number of prints current windows

      Hi again!

      I change my requirement:

      I need help with a script to count the numbers of click on a "print" button.

      Thanks again!

      ALEX FARIAS
      I am VodaHost customer: User hrvccunk
      www.nuestroscupones.com

      Comment

      • Watdaflip
        Major General

        • Sep 2005
        • 2116

        #4
        Re: Script to count number of prints current windows

        Well it's not possible to know when someone prints by going to file -> print, but if you have a button on your website that is set up to print the page, you can probably set it up to report back to the server using ajax.

        However this won't be very accurate considering you don't know how many users printed by using the menu (or ctrl + p shortcut to the menu).

        For the actual script you will need the javascript print button, a click event that executes a ajax function which will execute a php script that either records the click in a database of flat file. As this isn't a short snippet if code its a little beyond the scope of this forum, perhaps see if you can find an existing on, or try a freelancer

        Register/Login Script
        Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

        Comment

        Working...
        X