Displaying 1 result from an estimated 1 matches for "edit_vot".
Did you mean:
edit_vote
2011 May 04
1
Why do I sometimes have to refresh the page manually after an AJAX form submission?
When I do remote form submits through jQuery .submit() why do I
sometimes have to refresh the page manually to see the results?
My jQuery handler is very simple:
$("#vote_yes").click(function() {
$("#approval").val(true)
$(".edit_vote").submit()
});
And the link that leverages this bit of code is as follows:
<%= link_to("Vote Yes", @ballot, :class => "buttons", :id => "vote_yes")
%>
After using this link to submit the form on the page, however, sometimes
I need to refresh be...