Rating Script..

Mar 30, 2006

Does ne one have a Rating script same as on google groups...
the one wid stars..n the rating gets saved too...in some variable..

View 7 Replies


ADVERTISEMENT

Rating System

Dec 13, 2005

I was wondering if anybody had code for a rating system, like on alot of game sites it has stars and I was wondering how to do that,

View 2 Replies View Related

Rating 1 To 3 In Order Of Preference

Jul 23, 2005

Is it possible in jscript to have a
Rating 1 to 3 in order of preference.
That means if a user rates by inputing a value 3 for example in a texbox
or selecting 3 using dropdown menu.
The next available options should be 2 and if he/She inputs 2 the next
available option should be 1. Code:

View 4 Replies View Related

JQuery :: Thumbs Up/down Or Yes/no Rating?

May 18, 2009

I would like to create a thumbs up/down or yes/no like rating using jquery and php/mysql. I want to show two images and then when clicked, would like to display "thanks" and then store the value along with the page id(from the url) in the mysql db. Rating can be allowed only once for that id from one ip. I am assuming i can set a cookie or store the ip address and validate if that ip and the page id is already there.

View 4 Replies View Related

JQuery :: (client Side) Programmatically Set Rating?

Jun 14, 2009

I can't seem to figure out how to set the star rating value at clientrun time

View 1 Replies View Related

Rating Star Row - Refreshing Effect Not Working

Jul 22, 2009

Code:
<td>
<ul class="rating nostar" id="Torpedo">
<li class="one"><a href="javascript:RateItem('Torpedo', 1);" title="1 Star">1</a></li>
<li class="two"><a href="javascript:RateItem('Torpedo', 2);" title="2 Stars">2</a></li>
<li class="three"><a href="javascript:RateItem('Torpedo', 3);" title="3 Stars">3</a></li>
<li class="four"><a href="javascript:RateItem('Torpedo', 4);" title="4 Stars">4</a></li>
<li class="five"><a href="javascript:RateItem('Torpedo', 5);" title="5 Stars">5</a></li>
</ul>
</td>

This is a rating star row which is suppose to refresh without a browser refreshing. It is refreshing but is not CSS formatting to
Code:
<td><strong>Raiting:</strong></td>
<td>
<ul class="rated twostar" id="Torpedo">
<li class="one">1</li>
<li class="two">2</li>
<li class="three">3</li>
<li class="four">4</li>
<li class="five">5</li>
</ul>

I have to refresh the browser in order to
Code:
<td><strong>Raiting:</strong></td>
<td>
<ul class="rated twostar" id="Torpedo">
<li class="one">1</li>
<li class="two">2</li>
<li class="three">3</li>
<li class="four">4</li>
<li class="five">5</li>
</ul>
to appear..

It's the javascript working? This is the code before clicking on one of the star in the star row.
Code:
<style type="text/css">
<!--
.style1 {color: #FF3300}
.style2 {color: #FFFFFF}
.style3 {color: #000000}
-->
</style> .....

The javascript links that should do the refreshing automatically supposed to be the two below:
Code:
<script type="text/javascript" src="scripts/prototype.js"></script>
<script type="text/javascript" src="scripts/rating.js"></script>
How can it be possible to auto refresh it?

View 2 Replies View Related

How To Create Simple Rating System With Stars

Jul 28, 2009

can someone tell me how to create a simple rating system with stars or something like that and can i do it in js?

View 1 Replies View Related

JQuery :: Selecting And Rating Multiple Items From A List?

Jul 24, 2009

how to implement this bit of UI wizardry. I have a list of categories and the user is asked to pick all applicable items and then rate them individually. Right now I have a long list with checkboxes. Whenever a user checks one of the boxes a rating control pops up next to it and they just select the number of stars they want to rate the item.

Although this works for my purposes, it's a bit clumsy and takes up a lot of real estate (I have 30 items in the list so far and this may grow). What would be the best way to get this done?

View 1 Replies View Related

Altering Mootools Rating System To Update Database?

Nov 9, 2009

im trying to add a star rating system to a website. id like to do something elegant graphically instead of just using a drop down... the javascript framework im using is mootools and i found a great rating system here, but have no idea how to adjust it so that it updates the database with the new rating vote from the user and it calculates the new average rating.

the way i have the database set up for this is with the following fields: id (the rating's unique id) listingid (the listing that the rating corresponds to) userid (the user that entered the rating) rating (the rating itself)

i use php to communicate with a mysql database. the file im going to write will check to see if there is already a rating entered in from the logged in user. if there is, it will update it. if not, it will insert it, then it will calculate the average of all votes for that listing (rounded up) and return the new rating to the page and set the stars to reflect that rating... ive tweaked the code a bit to represent a 5 star system instead of a 10 star system and also so it can be used multiple times on a page.

heres what ive been playing with:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

[Code].....

View 6 Replies View Related

Jquery :: Get Rid Of 'cancel Rating' Button That Appears Next To 5 Stars When Enabled

Oct 12, 2009

i want to get rid of the "cancel rating" button that appears next to the 5 stars when enabled. I need to force the users to enter a rating,so i need to take the cancel rating button off (makes value = 0).I can't find how to change this!

View 2 Replies View Related

JQuery :: Star Rating: Set Value And Disable Based On Ajax Return Value?

Sep 22, 2011

I'm implementing theStar Ratingplugin. Star rating is called like this:

$(function(){
$('.stars').rating({
callback: function(value, link){
$.ajax({

[Code]....

After a star is clicked the form is submitted and processed. "rate.php" returns an integer from 1 to 5 with the new average rating. So far so good, but I'd like to update the Star radios with the new value and disable them after the form has been processed.

It seemed easy enough:

$('.stars').rating('select', data);
$('.stars').rating('disable');

View 2 Replies View Related

JQuery :: Star-rating Plugin Callback Function Throwing Error?

Jan 9, 2009

I'm using this star-rating plugin [URL] and the call back function provided to allow for submission of forms onclick of rating star.

Code:
$(document).ready(function() {
$('form.entry_rating').rating( {
callback:function(value, link) {
alert(value);
}
});
});

However, once the callback is included I get an error I've been trying to track down for the past day and a half. In IE the error thrown is "Object doesn't support this property or method" on Line 100 character 4. In my JS debugger the plugin breaks on line 99

[Code]....

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved