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.

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.

-- Yehuda

On 11/4/06, Rey Bango <[EMAIL PROTECTED]> wrote:
How about recreating it from scratch?

Rey...

Dragan Krstic wrote:
> I did similar thing, fully unobtrusive, as part o some cms. It is very
> similar, but I'm not allowed to post it, shmr, shmrc...
>
> ----- Original Message -----
> From: "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]>
> To: "jQuery Discussion." < discuss@jquery.com>
> Sent: Saturday, November 04, 2006 6:37 AM
> Subject: Re: [jQuery] Star Rating Plugin?
>
>
>
>>something like:
>>
>>$("a.starRating ").each(function(){
>>var $this = $(this);
>>var href = "">>>var stars = $this.text();
>>$this.empty();
>>for (var i = 0; i < stars.length; i++){
>>$this.append("<span class = '" + (i+1) + "'>" +
>>stars.substr(i,1) + "</span>");
>>}
>>$this.children('span').click(function(){
>>$.get(href,{rating:this.className});
>>$this.children('span').removeClass("selected");
>>$(this).addClass("selected");
>>return false;
>>})
>>});
>>
>>rate me<a class="starRating" href=""
>>
>>dom tested , but I didn't write the cgi or the styles.
>>
>>PS
>>those are utf-8 stars in the <a>
>>
>>
>>On 11/3/06, Sean O < [EMAIL PROTECTED]> wrote:
>>
>>>Looking for something to rate the JQuery Button submissions, Rey?
>>>
>>>;)
>>>
>>>_______
>>>SEAN O
>>>
>>>
>>>
>>>Rey Bango-2 wrote:
>>>
>>>>
>>>>Has a star rating plugin like this:
>>>>
>>>> http://www.masugadesign.com/the-lab/scripts/unobtrusive-ajax-star-rating-bar/
>>>>
>>>>been developed?
>>>>
>>>>Rey...
>>>>
>>>>_______________________________________________
>>>>jQuery mailing list
>>>>discuss@jquery.com
>>>>http://jquery.com/discuss/
>>>>
>>>>
>>>
>>>--
>>>View this message in context:
>>>http://www.nabble.com/Star-Rating-Plugin--tf2572187.html#a7171176
>>>Sent from the JQuery mailing list archive at Nabble.com.
>>>
>>>
>>>_______________________________________________
>>>jQuery mailing list
>>>discuss@jquery.com
>>>http://jquery.com/discuss/
>>>
>>
>>
>>--
>>Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
>>_______________________________________________
>>jQuery mailing list
>>discuss@jquery.com
>>http://jquery.com/discuss/
>>
>
>
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to