Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rating for somthing

Status
Not open for further replies.

NMDUC

Programmer
Mar 4, 2006
61
VN
Hi,
I see that there is nice rating section in some websites. In this section, there are 5 stars. For example, if you give the article or something 3 stars, click the third star. And three stars from the left to right is highlighted. I am looking for any script to do it. Please tell me how to do it. Thank in advance.
 
It's funny ow these things work out... we've just spent the last 6 months writing a cool ratings, review, and comment service which is in use on several large portals, but it's not yet publically available (watch this space).

To do this properly, you'd need more than just JavaScript. You'd need a back-end DB to store the ratings against some sort of content object / Id, you'd need server-side scripting to acces the DB, and of course, the front-end side of things (probably AJAX as well as JS).

Do you have a DB and server-side scripting if not, you've no chance.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
I try to write something similar to Of course, I thought about storing rating in DB. However, I don't know how to design it in the UI because I am not good at javascript. Javascript doesn't make the ASPX page post back.

If there are no easy way to do it with Javascript, I might use Ajax.
 
In fact, I am going to use Atlas. ^_^ Put some ASP.NET's image buttons, which represent stars, inside. When user clicks any button, it calls an event. And I will change the images. Since I use Atlas, there is no postback.
This is what I think I can do.

But I find other solution with Javascript what I am not good at.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top