Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-01-2012, 08:34 PM   PM User | #1
joesruddock
New Coder

 
Join Date: Jul 2010
Posts: 56
Thanks: 11
Thanked 0 Times in 0 Posts
joesruddock is an unknown quantity at this point
Click Counter

Hi Everyone.

I am looking to create a button on a website that visibly shows how many people have clicked on it. Much like a Facebook 'like' button but without the social media interaction. It's essentially a button that someone clicks and the numerical value beside increases per unique visitor.

Is this even possible? If so, How? I have searched high and low but with no luck!

Thanks

Joe
joesruddock is offline   Reply With Quote
Old 10-02-2012, 04:08 AM   PM User | #2
renter
New to the CF scene

 
Join Date: Sep 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
renter is an unknown quantity at this point
You would have to have an onlick function that would run your script. Get the users ip address and check to see if it is in your database if not add it. Then get the total number if ips in the list and there is your new counter number
renter is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:22 PM.


Advertisement
Log in to turn off these ads.