Hot!Ajax

  • Increase font size
  • Default font size
  • Decrease font size
  • default color
  • black color

Gsearch

Google
Home arrow Hodgepodge arrow Tooltips | Rating arrow Max's AJAX Rating System
Max's AJAX Rating System
User Rating: / 17
PoorBest 
Tuesday, 19 February 2008

Simple AJAX rating system. Supports multiple ratings on one page and no database required.

From:Ajaxf1

Demo:Click here

Download: Maxajaxrating (19.39 kB)

License:Free

Install Max's Ajax Rating:

1. Import submitRating.php at the beginning of your file
      require_once('submitRating.php');
 
2. Import maxrating.js in the head section of your page
      <script language="javascript" type="text/javascript" src="maxrating.js"></script>
 
3. Call displayRating function of the handler class with an identifier and the value of the rate maximum.
      <?php $handler->displayRating('Book1',5); ?>
 
If you want more rating on one page please take care to use unique identifiers.
4. You can display the actual rating points in textual format by using the displayRateValue function       with the identifier as parameter.
 <?php echo $handler->displayRateValue('Book1'); ?>
 
Similar to this you also can display the number of total votes until now with displayTotalNumberOfRatings function.
      <?php echo $handler->displayTotalNumberOfRatings('Book1'); ?>
 
Comments (2)add comment

Write comment

busy
 
Next >