Please wait image does not animate

D

Danny Masti

Hello,

I have a HIDDEN div with a "Please Wait Message". OnSubmit I show the
hidden div with the "Please Wait Message". It works fine. But if I
replace the "Please Wait Message" with an animated gif - the gif shows
up BUT it does not animate.

How do I make the gif animate?

THIS WORKS (initially hidden):-
<div id="wait" class="status">
<b>Please wait ...</b>
</div>

THIS WORKS BUT GIF DOES NOT ANIMATE:-
<div id="wait" class="status">
<img src="please_wait.gif">
</div>

JAVASCRIPT:
function ShowPleaseWait()
{
document.all?document.all.wait.style.visibility="visible":document.layers["wait"].visibility="visible";
document.myForm.submit();
}
 
R

rf

Danny Masti said:
Hello,

I have a HIDDEN div with a "Please Wait Message". OnSubmit I show the
hidden div with the "Please Wait Message". It works fine. But if I
replace the "Please Wait Message" with an animated gif - the gif shows
up BUT it does not animate.

How do I make the gif animate?


JAVASCRIPT:
function ShowPleaseWait()
{
document.all?document.all.wait.style.visibility="visible":document.layers["w
ait"].visibility="visible";

This line says: show the image on the current page.
document.myForm.submit();

This line says: abandon the current page, including all such things as gif
animations, and start loading a new page from wherever the form points to.

After this point the old page (the one with the gif on) has been discarded.
It is still visible but only because the new page has not been rendered to
the canvas yet.

Cheers
Richard.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top