Tuesday, March 15, 2011

Are there any Ajax(Prototype or JQuery Plugin) sample for stackoverflow-like voting?

any good ajax samples for implementing voting similar to the up and down buttons of stackoverflow.com

From stackoverflow
  • You create a page for voting like yoursite.com/vote?postid=1234&direction=up that saves the vote in the database. Then you create buttons or links for voting and perform an Ajax request when the user clicks the link:

    jquery:

    $.post("vote", { postid: the_id, direction: "up" })
    
    tranced_UT3 : any idea how to do that in GSP pages?
    Jules : I'm sorry, I have never used GSP (I didn't even know it existed).

0 comments:

Post a Comment