PHP Classes
elePHPant
Icontem

File: js/rate.js

Recommend this page to a friend!
  Classes of Subin Siby  >  Francium PHP 5 Star Rating System  >  js/rate.js  >  Download  
File: js/rate.js
Role: Auxiliary data
Content type: text/plain
Description: An example file that shows the usage of the Fr.star JavaScript plugin.
Class: Francium PHP 5 Star Rating System
Record star ratings of items in a MySQL with AJAX
Author: By
Last change:
Date: 4 years ago
Size: 206 bytes
 

 

Contents

Class file image Download
$(function(){
  $(".Fr-star.userChoose").Fr_star(function(rating){
    $.post("ajax_rate.php", {'id' : 'index_page', 'rating': rating}, function(){
      alert("Rated " + rating + " !!");
    });
  });
});