[eluser]Jay Turley[/eluser]
[quote author="phusiondesign" date="1206429175"]
Code:
$(function(){
$('.auto-submit-star').rating({
callback: function(value, link){
// 'this' is the hidden form element holding the current value
// 'value' is the value selected
// 'element' points to the link element that received the click.
alert("Selected Value: " + value);
$('#form1').ajaxSubmit({
type: "POST",
url: "http://www.mydomain.com/index.php/ratings/add",
dataType: "json",
data: "entry_id=1&rating=2",
success: alertMe
});
return false;
}
});
});
I am probably making some obvious mistake... thanks in advance.[/quote]
Okay, maybe I am missing something, but it doesn't look to me like you are using the Form Plugin for jquery.
Instead, your syntax above looks exactly like the typical form for a plain jQuery Ajax submission. Try changing this line:
Code:
$('#form1').ajaxSubmit({
to this:
I do not guarantee anything, and I am not in a position to test right now, but that very well could be the problem.