473,387 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Please wait image does not animate

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
3 9819
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
Gotcha - thanks Richard.

Any way we could make this work?
Jul 20 '05 #3
Use Flash.
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: MFA | last post by:
Hi All I have one ASP page. During opening this page its taking some time to open as its has to process some asp code. I want to display some animated gif or text showing that page is loading...
3
by: Naomi | last post by:
hello Could anyone please tell me if there is any way i can have the text "Menu Loading Please Wait..." appear while the js menu loads and then disappear after it loads ? hoping to hear some...
3
by: Kannan | last post by:
Hello, I have a requirement that specifies that I display a "Please Wait..." window (preferably modal) along with a gif that mimics a progress bar during a save operation. The dialog needs to be...
4
by: Stephajn Craig | last post by:
I have one page that may take a while to process on the server, and I'd like to implement a please wait message on this page when it posts back to the server and does its business. The page is...
3
by: Lucas Tam | last post by:
Does anyone have easy to use sample code to build a "Please wait... processing data screen?" I'm interested in something like Expedia's search page Thanks. -- Lucas Tam...
1
by: Hari Kumar G | last post by:
Experts! We are experiencing the following difficulty. We are required to display a gif image as a "please wait message", as done in asp pages. When this is attempted in an asp.net post...
4
by: puja patel | last post by:
hi all, I am developing a shopping cart website in C# where after selecting item, user enters credit card details and click on submit button.This request is then processed by the gateway which...
5
by: MattC | last post by:
Hi, I have a webservice that returns a byte for an image. I'd like to disaplay an image while the webservice is being contacted and then once the byte is available show that and remove the...
5
AaronL
by: AaronL | last post by:
Hello, I wrote a program that uploads images to a website using PHP but I'm not liking how it's currently working. When the user hits submit, the browser takes a long time, which I know is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.