Rating System

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm in the process of creating a database for my movie collection. I would
like to create a star (dot, bullet) rating system similar to the ones used on
this site and many others. The one I'm using currently is just a dropdown
box with a number in it. Does anyone know of a way to do this?
 
The best way is to create seperate images for each level of rating.
Assuming you don't need partial ratings (three and a half stars?), you
would need five images. Then you would code something to grab the image
based on the rating. This takes care of displaying the rating.
To save new rating, create five image controls using the start image.
Under the Click event of each star, you would write a value to the
table.

HTH,
Barry
 
Thanks for the help Barry. I do have a follow up questions. One, would I
use one grapic for the non-selected and then use the "OnClick" cmd to display
the other graphic (example: All five are gray. Click the first one and it
turnes red. Click the second one and two turn red, etc... Two, if I don't
use this solution, could I use a combo box to enter my rating (1-5) and have
the number I input pull up the required graphic.

Robert
 
Robert,
You can do it all. For the grayed out stars, you'll need a gray version
of the star. You can also use a combobox to set the values. The
function to set values and the function to display values are seperate.


Sounds like a fun project. A few weeks ago I poked around the page
source of Netflix.com to see how they were doing their star ratings. It
look very simple, just like I described for your project, however they
display tenths of a star, so they have a lot more graphic files.

Barry
 
Back
Top