[jQuery] Star Rating Plugin?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=281142914-06112006><FONT face=Arial color=#0000ff
size=2>Yehuda...</FONT></SPAN></DIV>
<DIV><SPAN class=281142914-06112006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=281142914-06112006><FONT face=Arial color=#0000ff size=2>But
what if for some reason the user didn't submit the form? Then they'd think that
they rated/voted, when in reality they didn't.</FONT></SPAN></DIV>
<DIV> </DIV>
<P><FONT size=2><!----------------//------<BR>andy matthews<BR>web
developer<BR>certified advanced coldfusion programmer<BR>ICGLink,
Inc.<BR>andy@icglink.com<BR>615.370.1530
x737<BR>--------------//---------></FONT> </P>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> discuss-bounces@jquery.com
[mailto:discuss-bounces@jquery.com]<B>On Behalf Of </B>Yehuda
Katz<BR><B>Sent:</B> Saturday, November 04, 2006 6:05 PM<BR><B>To:</B> jQuery
Discussion.<BR><B>Subject:</B> Re: [jQuery] Star Rating
Plugin?<BR><BR></FONT></DIV>The only difficult thing about a star plugin is
reporting fractional star-counts. Otherwise, it's *really* trivial. I would
use a hidden text-field or somesuch, and bind clicking the stars to updating
the field.<BR><BR>As to reporting the existing star counts, you could use a
blank star template stick it in front of a full star image, which increases or
decreases in size based upon the value of the hidden field. <BR><BR>--
Yehuda<BR><BR>
<DIV><SPAN class=gmail_quote>On 11/4/06, <B class=gmail_sendername>Rey
Bango</B> <<A href="mailto:rey@iambright.com">rey@iambright.com</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">How
about recreating it from scratch?<BR><BR>Rey...<BR><BR>Dragan Krstic
wrote:<BR>> I did similar thing, fully unobtrusive, as part o some cms.
It is very<BR>> similar, but I'm not allowed to post it, shmr, shmrc...
<BR>><BR>> ----- Original Message -----<BR>> From: "Ⓙⓐⓚⓔ" <<A
href="mailto:jakecigar@gmail.com">jakecigar@gmail.com</A>><BR>> To:
"jQuery Discussion." <<A href="mailto:discuss@jquery.com">
discuss@jquery.com</A>><BR>> Sent: Saturday, November 04, 2006 6:37
AM<BR>> Subject: Re: [jQuery] Star Rating
Plugin?<BR>><BR>><BR>><BR>>>something
like:<BR>>><BR>>>$("a.starRating
").each(function(){<BR>>>var $this = $(this);<BR>>>var href =
this.href;<BR>>>var stars =
$this.text();<BR>>>$this.empty();<BR>>>for (var i = 0; i <
stars.length; i++){<BR>>>$this.append("<span class = '" + (i+1) +
"'>" + <BR>>>stars.substr(i,1) +
"</span>");<BR>>>}<BR>>>$this.children('span').click(function(){<BR>>>$.get(href,{rating:this.className});<BR>>>$this.children('span').removeClass("selected");
<BR>>>$(this).addClass("selected");<BR>>>return
false;<BR>>>})<BR>>>});<BR>>><BR>>>rate me<a
class="starRating" href="stars.cgi?question=1">✰✰✰✰✰</a>!
<BR>>><BR>>>dom tested , but I didn't write the cgi or the
styles.<BR>>><BR>>>PS<BR>>>those are utf-8 stars in the
<a><BR>>><BR>>><BR>>>On 11/3/06, Sean O <<A
href="mailto:seanodotcom@yahoo.com"> seanodotcom@yahoo.com</A>>
wrote:<BR>>><BR>>>>Looking for something to rate the JQuery
Button submissions,
Rey?<BR>>>><BR>>>>;)<BR>>>><BR>>>>_______<BR>>>>SEAN
O <BR>>>><BR>>>><BR>>>><BR>>>>Rey
Bango-2 wrote:<BR>>>><BR>>>>><BR>>>>>Has a
star rating plugin like this:<BR>>>>><BR>>>>><A
href="http://www.masugadesign.com/the-lab/scripts/unobtrusive-ajax-star-rating-bar/">
http://www.masugadesign.com/the-lab/scripts/unobtrusive-ajax-star-rating-bar/</A><BR>>>>><BR>>>>>been
developed?<BR>>>>><BR>>>>>Rey...<BR>>>>><BR>>>>>_______________________________________________
<BR>>>>>jQuery mailing list<BR>>>>><A
href="mailto:discuss@jquery.com">discuss@jquery.com</A><BR>>>>><A
href="http://jquery.com/discuss/">http://jquery.com/discuss/</A><BR>>>>>
<BR>>>>><BR>>>><BR>>>>--<BR>>>>View
this message in context:<BR>>>><A
href="http://www.nabble.com/Star-Rating-Plugin--tf2572187.html#a7171176">http://www.nabble.com/Star-Rating-Plugin--tf2572187.html#a7171176
</A><BR>>>>Sent from the JQuery mailing list archive at <A
href="http://Nabble.com">Nabble.com</A>.<BR>>>><BR>>>><BR>>>>_______________________________________________<BR>>>>jQuery
mailing list <BR>>>><A
href="mailto:discuss@jquery.com">discuss@jquery.com</A><BR>>>><A
href="http://jquery.com/discuss/">http://jquery.com/discuss/</A><BR>>>><BR>>><BR>>><BR>>>--<BR>>>Ⓙⓐⓚⓔ
- יעקב ʝǡǩȩ ᎫᎪᏦᎬ
<BR>>>_______________________________________________<BR>>>jQuery
mailing list<BR>>><A
href="mailto:discuss@jquery.com">discuss@jquery.com</A><BR>>><A
href="http://jquery.com/discuss/">http://jquery.com/discuss/
</A><BR>>><BR>><BR>><BR>><BR>>
_______________________________________________<BR>> jQuery mailing
list<BR>> <A
href="mailto:discuss@jquery.com">discuss@jquery.com</A><BR>> <A
href="http://jquery.com/discuss/">http://jquery.com/discuss/</A><BR><BR>_______________________________________________<BR>jQuery
mailing list<BR><A
href="mailto:discuss@jquery.com">discuss@jquery.com</A><BR><A
href="http://jquery.com/discuss/">http://jquery.com/discuss/
</A><BR></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>Yehuda Katz<BR>Web
Developer | Wycats Designs<BR>(ph) 718.877.1325
</BLOCKQUOTE></BODY></HTML>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/