Hi,
Last week I was asked to create a sample to include in a SharePoint list rating functionality without any server code. That means only SharePoint Designer and client script.
First was how to store those ratings. Based on experience the obvious solution was to store scores in a separate list, and aggregate afterwards totals. This avoids locks at list level and improve scalability (at the end the aggregation was done from the self user).
So to accomplish this demo, you will need:
Step 4.1
<TD Class="{$IDAEG2RE}"> <DIV ALIGN="RIGHT" class="rating" title="{@ID}_{@Puntos}"></DIV> </TD>
<TD Class="{$IDAEG2RE}">
<DIV ALIGN="RIGHT" class="rating" title="{@ID}_{@Puntos}"></DIV>
</TD>
Step 4.2
This will give us the ability to build the UI through JQuery and associate the code to manage list items. Final result:
Bye!
the jquery rating js file is missing on the link...
an attachment is always a good way to what you want to show :)
Can we do it in MOSS 2007?
@Arsalan, I will add it ;)
@Pepsin,Indeed this sample is for MOSS 2007, SP 2010 has a rating feature OOB