You create a voting page, such as yoursite.com/vote?postid=1234&direction=up, which stores the voting in the database. Then you create buttons or links for voting and execute an Ajax request when the user clicks on the link:
JQuery
$.post("vote", { postid: the_id, direction: "up" })
Jules source
share