Closed GoogleCodeExporter closed 8 years ago
The problem was that the plugin removed every radio box and inserted a hidden
field
instead to hold the value to be submitted. But try the new version:
http://jquery-star-rating-plugin.googlecode.com/svn/trunk/jquery.rating.js
...the plugin now manipulates the radio boxes (changing their selection) which
should
not interfere with the validation plugin in anyway.
Let me know if it works
Original comment by diego.a...@gmail.com
on 21 Mar 2009 at 2:55
The star rating now works with the validate plugin to some degree. Here are
the issues I'm seeing (using the
same HTML as I originally posted):
The star rating shows only the empty stars (no hover, fill or drain effects,
only the empty star even when
selected)
The validate plugin, even though it can validate with the star rater in effect,
can't focus the invalid fields or
clear the error class after the invalid field is successfully validated. Both
these issues work fine when the star
rater is not in effect, but I don't know if it can really be resolved simply
because of how each of the plugins
has to work to do what they do.
Thanks, Diego, for the help :)
Original comment by agita...@mac.com
on 21 Mar 2009 at 7:35
a) The HTML you sent doesn't have a default box checked, so the stars will (as
they
should) be displayed initially empty.
b) The validate plugin will not be able to set the focus on the radio boxes
because
they are hidden. Unfortunately there is no way around this...
Original comment by diego.a...@gmail.com
on 21 Mar 2009 at 7:50
Point B above is understandable given how the validate plugin works.
Regarding point A however, the stars do display empty initially, which is what
I need so I can't have a box
checked by default.
But what I meant is that there are no hover effects, and no stars show a rank
even after selected. In any state
(hovered or selected) the stars stay empty. They never show a potential rank
when hovered and don't show
the selected rank when clicked. They only ever show empty stars.
Thanks!
Original comment by agita...@mac.com
on 21 Mar 2009 at 8:14
Diego, just to clarify, the star rater does still accept the value of the radio
box that gets clicked, there's just no
visual indication that you are hovering over the rater (no stars get filled)
and no indication that a selection was
made (the rater only displays empty stars even after a selection).
The stars do display when in readOnly mode and an initial value is set, so it
only has to do withe the mouseover
effects and filling the stars when a selection is made.
Original comment by agita...@mac.com
on 21 Mar 2009 at 8:19
Hi Agita, I think you're using the old CSS. Can you download the entire package
again
just to make sure?
http://www.fyneworks.com/jquery/star-rating/#tab-Download
Original comment by diego.a...@gmail.com
on 21 Mar 2009 at 9:28
I re-downloaded the whole package and tested and it was the same thing, but
then realized the single quotes
around star.gif and delete.gif in the css file were preventing the gfx from
showing. Removed those and had no
problem.
Thanks man!
Original comment by agita...@mac.com
on 21 Mar 2009 at 10:03
I've changed the css and removed the single quotes from future distributions...
Original comment by diego.a...@gmail.com
on 22 Mar 2009 at 11:18
Original issue reported on code.google.com by
agita...@mac.com
on 19 Mar 2009 at 3:13