Hide submit button
Some users are impatient and click the submit button more then once while waiting for their post to be saved.
In some cases this may result duplicate postings.
There are few ideas on how to solve duplicate postings but none is perfect;
One of the solutions I found was a short jQuery snippet to hide the submit button after it has been
clicked and replace it with an informative text such as "Please wait..." .
This module wrap this nice jQeury snippet.
Of course this is too, not a perfect solution, as it requires javascript to be enabled.
For browsers with javascript disabled this module will have no effect at all
Features:
- Hide (or disable) the submit button after it has been clicked
- java code can be loaded on selected pages only (like when adding or editing nodes)
- Display a message and/or pre-loaded image (ajax-like animation or such) while waiting
- Randomize images for each page load
- Exclude or enable hiding for certain forms
- Multi-language message support
Credits:
- Ted Serbinski's - I took the snippet from his blog
- jvandervort - I took few lines of code from his module Javascript Countdown Timer
Known issues:
Hiding buttons of AJAX forms may cause unwanted results
The latest release adds configurations that can overcome such conflicts
By excluding forms or buttons from the script
Todos / Ideas:
Sorted by priority
- Profiles: Choose different image and message for different pages
- Relate specific messages with specific images
- Dynamic preview of message and image
Releases
| Official releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-1.9 | 2009-May-13 | 38.68 KB | Download · Release notes | Recommended for 6.x | |
| 5.x-1.0 | 2009-Aug-29 | 37.01 KB | Download · Release notes | Recommended for 5.x | |

