473,748 Members | 7,571 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_wai t.gif">
</div>

javascript:
function ShowPleaseWait( )
{
document.all?do cument.all.wait .style.visibili ty="visible":do cument.layers["wait"].visibility="vi sible";
document.myForm .submit();
}
Jul 20 '05 #1
3 9874
rf

"Danny Masti" <dk***@yahoo.co m> wrote in message
news:77******** *************** ***@posting.goo gle.com...
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?do cument.all.wait .style.visibili ty="visible":do cument.layers["w
ait"].visibility="vi sible";

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
9769
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 or please wait...or some thing like that. I put image and text on top in file and then asp code but its not showing its only showing non asp part when its finishing the asp processing. I tried with response.buffer = false too. but no luck.
3
5804
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 advice on the matter Cheers Naomi
3
13486
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 closed at the end of the operation. How do I go about this... Issues are: 1. I believe a showModaldialog would stop all back ground processing and shift control to the modal dialog. 2. I would like to close the dialog from the parent window...
4
9135
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 an ASP.NET webform that contains a Web User Control. The Web User Control is doing all of the work posting. How can I inform the user of what is happening at the server while the data from this web user control is being processed? --
3
5722
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 (REMOVEnntp@rogers.com) Please delete "REMOVE" from the e-mail address when replying.
1
1303
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 back event, the gif animation stops completely till it has completed execution. We need to display an active gif image to show that the page processing is going on during a
4
3502
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 usually takes from 5-10 sec of waiting period to get response back if the transaction was approved of declined. I want to implement page which says "Please wait...your request is being processed." after user clicks on submit button and before I...
5
2662
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 please wait image. I was thinking of trying to use the CallBack mechanism but wondered if AJAX would be better suited. I'd really just appreciate some ideas on how this could be acheived. I'll
5
8447
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 normal because it's uploading images, however, I need to write a way to make it show a progress bar, or at least say "uploading images please wait..." I was thinking I would make imageuploader.php and then pass a $_GET value
0
8991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9544
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9372
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4606
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2783
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.