First my code
$.getJSON("./posts/vote/" + postId + "/1", null, function(result) {
if (result.result == true)
$("#pst" + postId + " > .pstside > .rank > .score").html(result.voteCount);
});
I have a bunch of buttons each with code which brings some voting results from an ASP.Net MVC controller action.
This works well the first time the button is clicked, but if it is clicked again nothing happens. Nothing reaches the server.
I am testing on FireFox.
What is going wrong? Some kind of weird caching? Because the request never reaches my controller the second time, the javascript seems to execute okay but keeps returning the old values.