I don't know when Ritesh is planning to update is plugin, but my modification of it that allows for half-star ratings is working with 1.2.1:

http://www.learningjquery.com/2007/05/half-star-rating-plugin

--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Sep 20, 2007, at 2:18 PM, NccWarp9 wrote:


is there any information when Ritesh Agrawal star rating plugin will
be fixed for 1.2.1 ?>

On Sep 13, 12:32 am, "Derek Gathright" <[EMAIL PROTECTED]> wrote:
Karl, thanks for the help.

I've added those corrections along with a few others and I think it's 99%
there.  The only issue left is that I can't get the click methods to
register. I'll continue playing around with it, but if anyone else has an idea as to what the issue may be, I've attached the js file. The additional HTML & CSS can be found here. http://sandbox.wilstuckey.com/ jquery-ratings/

---------- Forwarded message ----------
From: Karl Swedberg <[EMAIL PROTECTED]>
Date: Sep 12, 2007 11:46 AM
Subject: [jQuery] Re: Star rating plugin for 1.2?
To: jquery-en@googlegroups.com

The .lt() and .eq() -- and .gt() -- methods were removed from 1.2.
If you'd like to try to patch will stuckey's version, you could try the
following:

line 97:
                    .slice(0,index).addClass('hover').end();
line 105:
                $stars.slice(0,averageIndex).addClass('on').end();
line 108:

$stars.slice(averageIndex,averageIndex+1).addClass('on').children ('a').css('width',
percent + "%").end().end();

I don't know if there are other issues, but these are the most obvious --
and the easiest to change.

Hope that helps.

--Karl
_________________
Karl Swedbergwww.englishrules.comwww.learningjquery.com

On Sep 12, 2007, at 12:19 PM, Derek Gathright wrote:

I've been scouring the internet looking for a star rating plugin for the latest version of jQuery, but have been unsuccessful. I really like these,
but they appear to be incompatible with any recent versions.

http://sandbox.wilstuckey.com/jquery-ratings/http:// php.scripts.psu.edu/rja171/widgets/rating.php

I attempted to update the wilstucky.com one for jQuery 1.2, but I'm fairly
new to jQuery and wasn't able to figure out the issues.  I got past
the $form.title()
errors, but I just couldn't figure out why the hell $star.lt() & $star.eq() weren't functions. Maybe someone with a bit more experience would be more
successful than me?

On a side note, as I mentioned, I'm new to jQuery. In fact, my jQuery expertise goes back a full 24 hours. The website I'm coding now did use prototype and scriptaculous, but once I looked at the 1.2 version of jQuery, I knew I'd found a better solution (for me, anyways). So I spent the rest of the day recoding the site for jQuery. It was this post that convinced me I needed to change.http://jquery.com/blog/2006/08/20/why-jquerys- philosophy-is-better/

Anyways, if someone has some suggestions or solutions for the star rating,
that would be much appreciated!

Thanks,
Derek



 star_rating.js
7KDownload


Reply via email to