Addpixel / KirbyComments

[Kirby 2] File-based comments stored as subpages for the Kirby CMS.
MIT License
68 stars 4 forks source link

Submitting a comment #45

Open chrisgwynne opened 6 years ago

chrisgwynne commented 6 years ago

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

florianpircher commented 6 years ago

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.

chrisgwynne commented 6 years ago

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

florianpircher commented 6 years ago

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.