I use teh following code to show a div ('loading_image') while a form response is loading:
jQuery('#form').submit(function() {
jQuery('#loading_image').show(); // show animation
$(':submit',this).attr('disabled','disabled');
return true; // allow regular form submission
});
This works fine, but I have the following problem:The result page is on the same page. It shows up fine, after the form has been submitted. But if you go back from there via the browsers back button, the form shows up as it should but, the loading animation is still there.
How do I get rid of the loading animation, after the form is finished loading?
Hope someone has an idea?
Cheers
Bjorn


Sign In
Create Account


Back to top









