Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery: undo things when history:back?

Tags:

jquery

i know this question might be too easy, but i have no idea how to solve this.

when submitting a form i'll fadeIn a Loading-Image. When submitting the form was a success the page redirects blabla...

Now when I hit the BACK Button in my browser and i visit the previous page with the form the Loading-Image is still shown.

How can i make that hide again?

regards

like image 457
matt Avatar asked May 29 '26 15:05

matt


1 Answers

and what if you do a POST/Redirect/GET, which solves the duplicate form submitting as well?

like image 143
KARASZI István Avatar answered May 31 '26 04:05

KARASZI István



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!