NetTalk Central

Author Topic: Confirm Form Resubmission - minimize?  (Read 2802 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Confirm Form Resubmission - minimize?
« on: July 18, 2023, 12:10:34 AM »
Hi,

As I am testing, I get this a lot, and I know to avoid the back button, but I still do it.
So my clients/users are going to do it also.

Is there a way to minimise/eliminate this from happening?
Perhaps the way I code and the method of moving from window to window?


As I've come to notice it I have made a point of using the back/forward button on sites I use on a daily basis.
And it does happen, but then some hardly ever.
So hoping there is a way of managing it somehow?


thanks

Johan




Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Confirm Form Resubmission - minimize?
« Reply #1 on: July 18, 2023, 09:12:19 PM »
Hi Johan,

I'm not sure I understand from the title what your question is?
If your last action was a POST and you press the back button in the browser, then the browser asks you if you want to re-submit the post. You can answer yes or no as you desire. (It won't make any difference to the server).

Since this is a browse message, caused by using a part of the browser UI, I'm not sure what you want me to do about it?

Cheers
Bruce


Jane

  • Sr. Member
  • ****
  • Posts: 372
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Re: Confirm Form Resubmission - minimize?
« Reply #2 on: July 19, 2023, 06:47:59 PM »
Google search for

Code: [Select]
chrome what triggers form resubmission message
You'll see a number of possible workarounds, none of which are elegant.

Jane

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: Confirm Form Resubmission - minimize?
« Reply #3 on: July 19, 2023, 10:39:13 PM »
Hi Jane

thanks,
I do realise this is a browser UI thing, however the users will be external and I wont be able to dictate settings to them.

I was just looking for some advice/tips on anything that my code could influence to minimize the Form Resubmission.
Or if there are ways of doing something in NTWS that could be triggering the Form Resubmission, but there might be an alternative way of doing it.

Still learning on how it all fits together.
Some days with NTWS I "get it" and other days I am at the bottom of the steep learning curve. :)


Looks as if Posts and Gets play a big part,
This was interesting.
https://www.w3schools.com/tags/ref_httpmethods.asp
But I have also had situations where I only see GETS in the log, and I have the message.

I do notice that as I use other websites, some have it more than others,
so really just trying to eliminate any occurrences that my coding might trigger.

Will spend some time on this later in the project

thanks

Johan