Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

how to submit?


Project:Star Rating Plugin
Version:2.0.0
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Code it great! I just can't figure out how to submit result to another page. I see you added a callback function in Feb. I just can't figure out how to send rating info to another URL so it can then be recorded in DB... Thanks.
I've used another jQuery star rating before, but needed the multiple ratings option you created.
Here's page code (which works but doesn't submit). I'm not sure where to put the submit code.?. Thanks a bunch!!!

<form id="form2"> <script type="text/javascript" language="javascript">
$(function(){
$('#form2 :radio.star').rating({cancel: 'Cancel', cancelValue: '0'});
});
</script>
<script>
$(function(){
$('form').submit(function(){
  $('.test',this).html('');
  $('input',this).each(function(){ if(this.name!='') $('.test',this.form).append(''+this.name+': '+this.value+'<br/>'); });
  return false;
});
});
</script>
<cfoutput query="qryComments">
<div class="Clear">
    Rating 4:
    (1 - 5, default 1)
    <input class="star" type="radio" name="test-2-rating-#commentID#" value="1" title="Worst" checked="checked"/>
    <input class="star" type="radio" name="test-2-rating-#commentID#" value="2" title="Bad"/>
    <input class="star" type="radio" name="test-2-rating-#commentID#" value="3" title="OK"/>
    <input class="star" type="radio" name="test-2-rating-#commentID#" value="4" title="Good"/>
    <input class="star" type="radio" name="test-2-rating-#commentID#" value="5" title="Best"/>
   </div>
<p class="usercomments"><span>
Rate This Comment (6)&nbsp; &nbsp; &nbsp; &nbsp;From: <a href="profile.cfm?name=#username#">#username#</a>&nbsp; &nbsp; <cfif dissLove NEQ ''>(I #dissLove#)</cfif></span><br />
#commentText#
</p>

</cfoutput>
   <input type="submit" value="Submit scores!" />
   <u>Test results</u>:
   <br/><br/>
   <div class="test Smaller">
    <span style="color:#FF0000">Results will be displayed here</span>
   </div>

</form>