473,387 Members | 1,365 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.

DIV visibility and Animated gifs

I have a DIV on my webpage that is set to be hidden (style="display: none").
Within the DIV is an animated gif that's simply a graphic that simulates
data flowing from the clients PC to the server. This a form page
(self-submitting). When the user submits the form, I have some Javascript
that sets the DIV to be displayed. The problem is that the animated gif does
not "play". It's displayed in it's static state. WHY? And if I used a Flash
movie, would I have the same problem?
Jul 23 '05 #1
2 5333
Ivo
"ctrl+alt+delete" <th********@REMOVEmsn.com> wrote in message
news:tb******************@twister.socal.rr.com...
I have a DIV on my webpage that is set to be hidden (style="display: none"). Within the DIV is an animated gif that's simply a graphic that simulates
data flowing from the clients PC to the server. This a form page
(self-submitting). When the user submits the form, I have some Javascript
that sets the DIV to be displayed. The problem is that the animated gif
does not "play". It's displayed in it's static state. WHY? And if I used a
Flash movie, would I have the same problem?


It is common that gif's stop animating the moment you click to go to a new
page. Submitting a form is the same as that: going to a new page.
You could try a workaround popping up a separate window onsubmit with the
'waiting' gif, that you close with some script on the new page. Or just
trust the user to understand that he has to exercise some patience when he
submits his form. Most people are used to that by now.
--
Ivo

Jul 23 '05 #2
Thanks, that's what I suspected was happening. I used a small Flash
animation instead and now it works great. BTW: It's for a file upload page,
so it can take a while and I just want it to be idiot proof.

"Ivo" <no@thank.you> wrote in message
news:41***********************@news.wanadoo.nl...
"ctrl+alt+delete" <th********@REMOVEmsn.com> wrote in message
news:tb******************@twister.socal.rr.com...
I have a DIV on my webpage that is set to be hidden (style="display:

none").
Within the DIV is an animated gif that's simply a graphic that simulates
data flowing from the clients PC to the server. This a form page
(self-submitting). When the user submits the form, I have some Javascript that sets the DIV to be displayed. The problem is that the animated gif
does not "play". It's displayed in it's static state. WHY? And if I used a Flash movie, would I have the same problem?


It is common that gif's stop animating the moment you click to go to a new
page. Submitting a form is the same as that: going to a new page.
You could try a workaround popping up a separate window onsubmit with the
'waiting' gif, that you close with some script on the new page. Or just
trust the user to understand that he has to exercise some patience when he
submits his form. Most people are used to that by now.
--
Ivo

Jul 23 '05 #3

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

Similar topics

9
by: John J. Hughes II | last post by:
Is it possible using Image or Bitmap to build and save an animated GIF file? I am not have a problem saving the GIF file just getting the frames added to it. I did find ImageAnimator but it only...
2
by: Koen Hoorelbeke | last post by:
Hi there, I'm trying to read an animated gif from a url (for a banner-rotator). The code I have now, does read the gif (or jpg), but the result is that I only get the first frame of the animated...
0
by: GrandpaB | last post by:
I am creating a small simulation in VB and wish to incorporate several animated GIFS. I can load the GIFS from the hard drive into a picture box and they animate, but I have two questions. 1.)...
4
by: Helmut Giese | last post by:
Hello out there, this is OT but maybe some of you were in the past faced with the same problem: I have lots of sequences of GIF files to combine into animated GIFs. I can do it 'by hand' with...
2
by: Scirious | last post by:
People, I need a way to detect the moment an animated GIF gets to it's end to switch to a different GIF. I can't use a Timer because the GIFs have different times and doing so (as I'm doing at the...
3
by: ZikO | last post by:
Hi. I am making a Multimedia Presentation in VB.NET 2005 and I have some animated GIFs which I need to use. I tried to use PictureBox for it but it doesn't play an animation in GIFs :/. What I...
4
by: Jeff | last post by:
Hi, I'd like to write Javascript that stops animated gifs from animating. On Firefox, at least, window.stop(); does the trick, although it stops everything on the page and is kind of...
27
by: Phil | last post by:
I thought it would be nice to display some animated GIFs on some of my forms. I put a PictureBox control on a form, and loaded my GIF file in. It animates, but not properly. It seems very jerky and...
0
by: helraizer1 | last post by:
Hey, I have a PHP script that I made for an image based shoutbox with emoticons. The problem is that php GD doesn't support animated gifs, yet perl GD does. How would I make it so that I could...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
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.