Ntz RateThis jQuery Plugin

Some weeks ago i needed a jQuery (yes, i’m a jQuery addicted!) plugin for basic star-rating system with ajax call. Because i wanted a minimum html markup, i start to wrote my own plugin, with a handy way to implement. Just drop this where you want to display stars:


Then call ntzRateThis on document load:

$(document).ready(function(){
 $('.rateThis').ntzRateThis();
});

Easy, isn’t? You need to specify (in title):

current – current rate (accept float);
href – link for backend rating script (this script will return final rate after vote and also verify that is only one vote per day);
id – id of the element (for example, id of article that you want to rate).

That’s all. You still need to include css and javascript files (is in the ZIP file) :)

You can see a demo of this plugin here (you have a demo for rating only, backend script sends only random numbers, so the rate won’t be real!) and you can download from here.

No related posts.

2 thoughts on “Ntz RateThis jQuery Plugin

Leave a Reply