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'); ?>
Set as favorite
Bookmark
Email This
Hits: 1602
Comments (2)

Write comment
| Next > |
|---|







