Results 1 to 4 of 4

Thread: Script to count number of prints current windows
      
   

  1. #1
    alfarias is offline Corporal
    Join Date
    Apr 2009
    Posts
    14

    Question 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

  2. #2
    alfarias is offline Corporal
    Join Date
    Apr 2009
    Posts
    14

    Default 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

  3. #3
    alfarias is offline Corporal
    Join Date
    Apr 2009
    Posts
    14

    Default 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

  4. #4
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,118

    Default 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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49