I have mobile app where user can send message. I am showing preloader as Sending... when user clicks on send button. At the same time I want to make all background elements disable so that user will not able to click again until first message is delivered. I can do with Jquery to disable on beforeSend and enable it in success event of ajax. But I have more than 4 buttons on form and there are multiple such forms. I want to disable it when preloader is running on screen. Please Help!
How to disable elements at background when preloader is running in Framework7 mobile App
525 Views Asked by Ankit21ks At
2
There are 2 best solutions below
0

Use the modal indicator or preloader modal, it already disables the background view for you until your actions are done:
make them unclickable when preloader is running:
or from xml: