How It's Done....AJAX?

Discussion in 'Web Design and Development' started by SChaput, Oct 12, 2009.

  1. SChaput macrumors regular

    Joined:
    Jul 2, 2008
    Location:
    United States
    #1
    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.
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    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.
     
  3. nuxx macrumors member

    nuxx

    Joined:
    Jun 5, 2007
    Location:
    Tokyo
    #3
    Firebug doesn't show any XMLHttpRequest objects, so whatever else it's using I doubt it's using pure AJAX.
     
  4. Mitthrawnuruodo Moderator emeritus

    Mitthrawnuruodo

    Joined:
    Mar 10, 2004
    Location:
    Bergen, Norway
  5. SChaput thread starter macrumors regular

    Joined:
    Jul 2, 2008
    Location:
    United States
    #5
    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.
     
  6. SrWebDeveloper macrumors 68000

    SrWebDeveloper

    Joined:
    Dec 7, 2007
    Location:
    Alexandria, VA, USA
    #6
    Ajax does not require that object to make it Ajax. Here's an example using PHP and Javascript without referencing that specific object.

    -jim
     

Share This Page