By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,628 Members | 1,880 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,628 IT Pros & Developers. It's quick & easy.

Please wait image does not animate

P: n/a
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="v isible":document.layers["wait"].visibility="visible";
document.myForm.submit();
}
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
rf

"Danny Masti" <dk***@yahoo.com> wrote in message
news:77**************************@posting.google.c om...
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="v isible":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.
Jul 20 '05 #2

P: n/a
Gotcha - thanks Richard.

Any way we could make this work?
Jul 20 '05 #3

P: n/a
Use Flash.
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.