dojox.widget.Rating commited
Yesterday another one of my contributions found it’s way into dojo: dojox.widget.Rating. You can try out the always latest version online in the dojo archive. It’s quite a simple form widget, that allows you to click a star for rating an item. The number of stars and the styling can be adjusted via images and CSS.
If you want an even more flexible way to customize the stars you should look at what Tobi has to offer with his SVG generated stars, they come in many more flavors!

Ravi said,
May 25, 2009 at 11:05 am
Hi - i am trying to use your widget for rating that is published at http://docs.dojocampus.org/dojox/form/Rating. But i am unable to make it readonly by disabling it.
Can you please let me know how i can disable this widget?
Thanks,
Ravi
sarang said,
September 15, 2010 at 8:03 am
Hi,
I have same requirement as that what Ravi has.
I have integrated the rating with my app.
But I want some of my app user not to rate the posts.
i.e they should not click the stars.
they can only see the previous ratings.
But though I apply disabled or readonly to the rating, the stars
are still clickable.
can anyone help?
Many Thanks in advance!!!!!!
Regards,
Sarang Bhoirkar.
Harold Stulick said,
May 3, 2011 at 5:56 pm
im a novice in SEO and i still do study more on internal connecting. Currently, which i do to optimize my website is just make as many backlinks as possible.
Jim said,
December 7, 2011 at 9:59 pm
I noticed a difference between your rating and the one packaged with Dojo (1.6).
If you render a rating with 3 of 5 starts using the Dojo version and mouse over 4/5 then mouse out, the rating doesn’t reset itself. Leaving the rating now showing 4/5.
on the other hand…
You version here resets back to the stored rating.
http://wolfram.kriesing.de/dojo/dojox/widget/tests/test_Rating.html
I think this is a bug but I’m not sure how/where to post it.
gizmore said,
January 24, 2013 at 8:06 pm
To disable dojox form Rating i wrote an own class that inherits it and adds support for beeing disabled.
define(["dojo", "dojox/form/Rating"], function(dojo){
dojo.declare(’mypackage.widget.Rating’, dojox.form.Rating, {
constructor: function(args) {
dojo.safeMixin(this, args);
},
_onMouse: function(evt) {
if (!this.get(’disabled’))
{
this.inherited(arguments);
}
},
onStarClick: function(evt) {
if (!this.get(’disabled’))
{
this.inherited(arguments);
}
}
});
});