I'm noticing ajax being called several times resulting in duplicate entries in mySQL. What's the deal? Can anyone see anything in my code?
$("#form-addcomment").live('submit', function(e) {
e.preventDefault();
var values = $(this).serializeArray();
values = $.param(values);
$.ajax({
type: "POST",
url: "/components/m/actions/index.php",
data: "command=comments_add&" + values,
dataType: "html",
success: function(data){
alert(data);
return false;
}
});
return false;
});