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


ADVERTISEMENT

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

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

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 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

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

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

System Variables

Oct 6, 2006

I need a javascript that will display all system variables (e.g. HTTP_REFERER). I am not a programmer, so if you could post all of the html and stuff that would be great. Code:

View 5 Replies View Related

Particle System

Jul 8, 2007

I'm not quite sure if this is useful, but it's fun to watch :) . It displays a Particle System in which point masses gravitate toward each other.

Simple unzip the attachment, open TEST.html, and run:

var vps = new VisibleParticleSystem(canvas).randomizeParticles(10);
vps.run();

It works in Firefox, doesn't in IE, unsure about others.

View 1 Replies View Related

3D Lindenmayer System

Nov 7, 2007

I recently found out about L-systems (Lindenmayer systems) which are fairly interesting so I decided to make one in javascript. It uses the <canvas> tag so the code won't run in IE. I made a 2D version first and then decided to expand it into 3D because I think 3D stuff is much cooler. I tried to comment the source a bit. You can use the code for anything you like. It does include a simple 3D engine which can work with things made up of lines. Here is a link.

View 1 Replies View Related

Want To Logged Out From The System?

Aug 24, 2010

I have a problem. When i want to logged out from the system or close an account etc i want to display this message. " Are you sure you want to logged or something like" and "Yes and " No" buttons are there.

View 2 Replies View Related

Tab System Refresh Same Tab

Oct 22, 2009

Does anyone know of a tutorial or the proper name for a tab system that will stay on the current tab even if you refresh.I've seen some sites that what they do is pass some parameters in the URL and it allows them refresh the page and stay on the same tab.I'm not sure on how to explain it properly nor do I have the proper name for it.if I click on About tab it will show the content of that tab AND also allow you to stay on that tab even if you refresh. A lot of tab tutorials I've seen when you refresh it resets all tabs.

View 7 Replies View Related

System Location

Jan 22, 2006

I have a script that displays the system time as the date but is there one that also displays the system location? For example "Location: Poland , Date: Sunday January 22, 2006" or "Location: Russia, Date: Sunday January 22, 2006"

View 1 Replies View Related

JavaScript Documentation System

Jul 23, 2005

We have a JavaScript SDK with lots of classes and functions. We would like to generate automatic HTML documentation from it to our users. We look for a free tool, something like Doxygen, that knows how to handle JS code.

View 2 Replies View Related

Undo System For Text

Jul 23, 2005

I`m writing a javascript regex tester (IE 6 only) and would like to include
an undo button for a text input field.

I want it to handle individual keystrokes, pasting and drop, and also
text added by clicking various buttons.

I have tried a LOT of handler combinations and fancy conditionals to
make it work perfectly, and I`m ALMOST there.

View 3 Replies View Related

Get The Currenty Date Of The System

Mar 24, 2006

Someone knows obout how i get the currenty date of the system in JavaScript?

View 3 Replies View Related

Get System Properties Using Script?

Aug 11, 2011

Can any body tell, how to get system properties using javascript? I need to get logged-in username and domain name by using javascript.

View 2 Replies View Related

Create A Voting System?

Dec 23, 2010

I run a site on tumblr. I know its not as good as wordpress and doesn't allow as many options but I am looking to create a unique voting option for each post. Like an up down vote. Any ideas on how to set this up?

View 3 Replies View Related

Forum System From Php Using Iframes?

Dec 15, 2011

I have both the java script and the php files, i just need to intergrate them into eachother to display the different topics and forums:

New Forum:

index.php :

<?php
include('../includes/db_connect.php');
include('../includes/inc-logincheck.php');

[code]....

View 4 Replies View Related

Secure Password System

Aug 28, 2006

My idea is to create a safety system that indicates the safety of the password. I have a field in a form called PASSWORD and I want that if the person writes only letters by means of a document.write there appears a phrase that says: easy password. If more than 8 letters appear: medium password. And if writes letters and numbers appear: high password.

View 3 Replies View Related

How To Use Magento E-commerce System

Oct 1, 2009

I'm learning how to use Magento e-commerce system, I'm reading its documentation but I don't understand some term, a "pre-compiled JavaScript library", what do they mean by that?, how can JavaScript code be compiled?

The web downloader for upgrading and installing Magento without the use of SSH (covered in Chapter 2). • js—The core folder where all JavaScript code included with the installation of Magento is kept. We will find all pre-compiled libraries of JavaScript here.

source: [URL]

View 1 Replies View Related







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