*slight amendment (but still doesn't work!):
$(function(){
$('.star').rating({
callback: function(value, link){
this.form.ajax(function(){
var category=$('[...@name=category]').val();
$.ajax({
type: "POST",
url: "http://domain.com/
feedback.php",
data: "rate="+value
+"&category="+category,
success: alert("yes!")
}) ;
}
});
});
On Apr 30, 1:01 am, mea <[email protected]> wrote:
> I'm trying to have the results of a star rating form be submitted
> automatically, but I can't seem to integrate .ajax with the Star
> Rating callback. Support for this plugin (http://jquery-star-rating-
> plugin.googlecode.com) redirects to this mailing-list, so... here it
> is!
>
> This is what I have between the script tags (each input field is in
> the star class, each input form has a hidden variable named category,
> which specifies which star-input form is submitting):
>
> $(function(){
> $('.star').rating({
> callback: function(value, link){
> this.form.ajax(function(){
> var perma=$('[...@name=category]').val();
> $.ajax({
> type: "POST",
> url: "http://domain.com/feedback.php",
> data:
> "rate="+value+"&category="+category,
> success: alert("yes!")
> }) ;
> }
> });
> });
>
> Any help or advice is appreciated!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---