dev-master
9999999-dev http://www.dynasource.eu/Protects forms to be submitted twice
BSD-3-Clause
js forms vanilla
0.1
0.1.0.0 http://www.dynasource.eu/Protects forms to be submitted twice
BSD-3-Clause
js forms vanilla
Wallogit.com
2017 © Pedro Peláez
Protects forms to be submitted twice
Forms usually need to be submitted once., (*1)
When double submission does occur (i.e. because of double clicking), unwanted side effect can occur: * duplication of records in a database * multiple actions such as i.e. sending duplicate emails * thrown exceptions as systems could not expect certain actions to be executed twice, (*2)
This "Js-SubmitOnce" script is a plain JS vanilla script to prevent this undesired behavior., (*3)
Installation is done by composer, requiring:, (*4)
```json { "require": { "dynasource/js-submitonce" : "*" } }, (*5)
Include it in your webpage with: ```js window.addEventListener('load', function () { new SubmitOnce({ 'selector': 'btn' }); });
Protects forms to be submitted twice
BSD-3-Clause
js forms vanilla
Protects forms to be submitted twice
BSD-3-Clause
js forms vanilla