KirbyComments icon indicating copy to clipboard operation
KirbyComments copied to clipboard

Submitting a comment

Open chrisgwynne opened this issue 6 years ago • 3 comments

When I submit a comment, all is fine. However when I go to refresh that page I get a dialogue box open up asking for resubmission of form details. Anyway to be able to refresh without this occuring?

9ffbd85fd91ccc354200e8b499e02c0fd478845b

chrisgwynne avatar Aug 07 '18 17:08 chrisgwynne

This is a generic warning message that is displayed by many web-browsers when re-requesting a page that has received HTTP-Post data. If you are reloading (or “refreshing”), then the browser sends the HTTP-Post data again to the server. Kirby Comments can detect such a situation and stops you from re-submitting your comment (i.e. clicking “Continue” in the dialog window will not post the comment twice).

The dialog window is a browser feature; I don’t think Kirby Comments can prevent it.

florianpircher avatar Aug 07 '18 17:08 florianpircher

When posting comments on other blogs/forums etc. Using similar comments plugins i dont get such submission issues on refresh.

chrisgwynne avatar Aug 07 '18 21:08 chrisgwynne

Forms that use JavaScript/AJAX to submit the form data do not encounter this situation, as the data is not re-submitted on page reload. If you know of any example form system where plain HTTP requests are used and Google Chrome is not showing the dialog window when reloading, please let me know.

florianpircher avatar Aug 08 '18 06:08 florianpircher