cancel
Showing results for 
Search instead for 
Did you mean: 

Show loader on post form

Established Member

Show loader on post form

Hi @ all!

 

I need a little help. I developed a module, which will send a form with post and the target file will save some data in the SQL database and send an email to the customer. Everything works fine, but unfortunately that takes 5 or 6 second.

 

I saw a nice bootstrap solution here: https://codepen.io/jmalatia/pen/HkmaA

 

But I can't get it to work in my phtml file. The button changes only if the target page is loaded (I can see that by using the back-button), but he should change, and the the action should start.

 

Can somebody help me? Or give an alternative?

 

Greetings from Germany.

 

Michael

  • CE 2.1
  • magento2
1 REPLY
Highlighted
1 x Certified
Magento
PHP

Re: Show loader on post form