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 Swedberg
www.englishrules.com
www.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