http://cl.ly/2D221O0J33421Y1v2V0QMessages AJAX plusieurs fois dans Chrome
Y at-il un moyen d'éviter cela?
fonctionne parfaitement dans Firefox, etc.
votes.php:
http://pastie.org/1369778
jQuery(function(){
jQuery("a.vote_down").click(function(){
//get the id
the_id = $(this).attr('id');
// show the spinner
$(this).parent().html("<img src='images/spinner.gif'/>");
//the main ajax request
$.ajax({
type: "POST",
data: "action=vote_down&id="+$(this).attr("id"),
url: "/votes.php",
success: function(msg)
{
$("span#votes_count"+the_id).fadeOut();
$("span#votes_count"+the_id).html(msg);
$("span#votes_count"+the_id).fadeIn(1000);
$("span#vote_buttons"+the_id).remove();
}
});
});
});
est que la question ce qui est affiché ci-dessous été – kobe