Reputation: 7956
<form action="reg.php" method="post" onsubmit="spinn()">
...
form processing is long about 7 sec. (phpMailer inside)
function spinn(){
$('#loading').html("<img src='spinn.gif' />");
}
spinn.gif
is there, but - it doesn't animate !. Keeps as a common image.
At the same time ( during the form processing) spinner on Firefox's tab - is animated.
My RAM is 4GB - if matters.
Upvotes: 0
Views: 887
Reputation: 7356
Just a thought... you might try having the html in there to start
<img src='spinn.gif' style='display: none;' />
Then in your code:
function spinn(){
$('#loading').show();
}
It could be that the image needs to be preloaded, and it may not be able to do that while the form is submitting.
Upvotes: 3