Results 1 to 3 of 3

Thread: click counts

  1. #1
    Join Date
    Oct 2008
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default click counts

    I have a download page that includes number of anti virus software downloads.
    what all I want is, when user click on download button, it should be counted immediately.

    It may help any visitor deciding which anti virus he should downloads on the basis of number of downloads for each one.

    I dont want to use any server side script, Is it possible using a client side javascript code?

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    You have to use server side to do this. Google around and you will find many examples, here's one to get you started, done with PHP:
    http://www.dreamincode.net/forums/showtopic11803.htm

    Good luck!
    Eddy Proca
    I love Dropbox. Get it through my girlfriend's referral link (I reached my limit) and both you and her get 500 MB extra! Thanks and you're welcome!

  3. #3
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default

    You don't HAVE to do it server side, but the javascript way isn't compatible with all browsers (ha- only with ie). I wouldn't recommend it though. If you have a website and it supports php, use server side scripting. Now, to do in in javascript, you would need to access a file with ActiveX (again, only found in internet explorer). You can then edit the file. You wouldn't be able to change the number in the file easily, but you can add text to it, making it larger and larger with each click (then get the length of the file)- VERY BAD. Don't do it that way. I suppose you're host's servers support php. What host do you use?

Bookmarks

Posting Permissions

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