I have a simple form that adds new comments on button submit. When I submit the form, the page reloads. However the result is not visible on the first refresh. When I refresh the page again, (without form re-submission) then I get to see the result. Any ideas why it behaves like that?
<form id="formid" action="" method="POST" >
<div>
<textarea name="discussion" id="discussion"></textarea>
</div>
<div>
<button type="submit" name="new_comment_submit" value="new_comment_submit">Submit</button>
</div>
</form>
The data are send as JSON and on the view I retrieve them via GET