I took a look at the prototype widget. You should be able to use the dojo.widget.slider with a transparent shuttle to accomplish roughly the same effect as a stars widget. <br><br>Specifically one could set the snapValues to stars+1, turn on activeDrag, turn off showButtons, set handleSrc to a transparent image, progressBackgroundSrc to "full" starts, backgroundSrc to "empty" stars.
<br><br>If you need to lock it after setting it, in the onValueChanged just set isEnableX to false.<br><br>It still lacks the "existing rating" (red stars) that the stars widget you linked in has. If this is important to you, it could be accomplished by extending the Slider (ala SliderHorizontal) to add it.
<br><br>The latest versions of prototype play fine with dojo as long as you have dojo load *first*, although I personally prefer to not mix them.<br><br>Hope this helps,<br><br>Matt<br> <br><div><span class="gmail_quote">
On 12/8/06, <b class="gmail_sendername">Richard Wallace</b> <<a href="mailto:rwallace@thewallacepack.net">rwallace@thewallacepack.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello all,<br><br>I've got an application that I'm working on and gathering feedback is<br>a key part of the whole system. So we want to make it easy for users<br>to rate things and naturally we're thinking about using a rating star
<br>widget ala Netflix.<br><br>I was able to find this one,<br><a href="http://www.beauscott.com/2006/08/26/ajax-rating-stars/">http://www.beauscott.com/2006/08/26/ajax-rating-stars/</a>. But it's<br>based on Prototype and I don't even know if that will be compatible
<br>with dojo.<br><br>Has anyone had tried to create a rating star widget with dojo? If<br>not, do you think there will be problems using the prototype one with<br>dojo?<br><br>Thanks,<br>Rich<br><br>_______________________________________________
<br>Dojo FAQ: <a href="http://dojo.jot.com/FAQ">http://dojo.jot.com/FAQ</a><br>Dojo Book: <a href="http://manual.dojotoolkit.org/DojoDotBook">http://manual.dojotoolkit.org/DojoDotBook</a><br><a href="mailto:Dojo-interest@dojotoolkit.org">
Dojo-interest@dojotoolkit.org</a><br><a href="http://dojotoolkit.org/mailman/listinfo/dojo-interest">http://dojotoolkit.org/mailman/listinfo/dojo-interest</a><br></blockquote></div><br>