I have a PHP-based web application that monitors the status of a process and displays a page with that status. Users can click a button on the page to update the status. However, the processing load on my server is heavy enough that updating the status too frequently is undesirable. So I want a way to limit someone to one click per minute on the Submit button (which refreshes the status displayed on the page). For example, if someone clicks the button at 12:00:00, they should not be able to click it again until 12:01:00.
After a click on the button, I would like to perhaps disable the button and re-enable it after one minute has passed – that’s my preferred solution.
Thank you very much.
wtf… people is jQuery addicted.