Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

SChaput

macrumors regular
Original poster
Jul 2, 2008
153
0
United States
I'm curious as to how the website, http://www.textsfromlastnight.com handles their rating scale.

When your on any given page you can click "good night" or "bad night" depending on your vote it increments by one and doesn't let you vote on that particular post again.

Is this done by using AJAX? combined with a mysql database, using cookies and IP's to block repeat voters?

Thanks.
 
Yea, it looks like it's a mix of those things. Can't tell for certain if they have a DB on the backend, but that's the usual case for this type of thing. Blocking repeats could be done few ways, through JavaScript, Sessions, Cookies, etc.
 
Firebug doesn't show any XMLHttpRequest objects, so whatever else it's using I doubt it's using pure AJAX.
 
Thanks for showing me the rateup and ratedown functions, I also saw those looking through the code.
What is this type of thing called? I'd like to implement something like this, using a mysql database as the backend, as well as some php and maybe JavaScript? But I'm not exactly sure what sort of tutorials I need.

Any help is appreciated. Thanks.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.