Hot!Ajax

...because open source matters

 
  • Increase font size
  • Default font size
  • Decrease font size
  • dark
  • light
  • leftlayout
  • rightlayout

Max's AJAX Rating System

User Rating: / 25
PoorBest 

ImageSimple 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

Newer news items:
Older news items:

 

google ad

Copyright

Creative Commons License
Hot!Ajax is licensed under a Creative Commons Attribution 3.0 Unported License.