Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 184
  • Last Modified:

How does "customer rating" functionality works?

We have an ecommerce site and we want to add "customer rating" system. This is where customers rate a product and for example give it 5 stars or 1 star. Then it's dsplayed below each product...

I'm guessing I need a table to hold the rating, customer comments, datetime comment was entered, the product that was rated. Then code needs to average the stars...

But how about the stars...is this done with AJAX??
0
Camillia
Asked:
Camillia
1 Solution
 
mkosbieCommented:
The star ratings are made with javascript mouseovers.  You would generally use a hidden field to store the current value of your "star meter" so it's submitted with the form.  Here's a couple already made meters (found by googling "javascript rating system":

http://www.hotscripts.com/Detailed/63988.html
http://jcay.org/javascript/scripts-and-programs/xml-and-javascript/ajax-rating-system.html
http://www.reignwaterdesigns.com/ad/tidbits/rateme/
http://www.webdeveloper.com/forum/showthread.php?t=139403
0
 
CamilliaAuthor Commented:
thanks, thought it's done with AJAX.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now