I have been doing Google search for the past two days and couldn’t find what I want.
I have SMSmobile tool being developed in PHP which allow client to send Bulk SMS, when the my clients press Send button the browser will keep loading until the SMS been sent to all of his contacts (it might be 100000 contacts or more) so it will take from 2-5 minutes. In the mean while if the client press browser Refreshbutton or any other button from the same page it will destroy the sending process.
I need to display a pop-up progress bar that prevent the user from doing any action until the Sending process is over.
Any suggestions please?
Try this:
Make sure you have jQuery!
MarkUp:
Then replace your body tag with this:
And add this to your HTML:
Anyway, this detects a reload and executes a loading bar, which will prevent them from reloading (hopefully)