Hi,
I have a button on an aspx page (I'm using vs2005 with asp2), which when
clicked takes a while to do some data processing before it posts back to the
screen to display the results.
I therefore created a little animated gif, which, when the button is
clicked, I display using javascript in a floating div, the idea being that
the animation shows that something is happening until the postback occurs.
The problem is, as soon as the button is clicked, the animation actually
stops until the page reloads! I thought I was doing something wrong but I
turned it so it was permanently visible, the animation is working fine until
the button is clicked, then it stops dead until the page reloads.
Has anyone else had this issue? Is it just ie or will this occur with all
browsers, and more importantly is there a way to fix it? I can easily just
display some static text (please wait or something) but the animation is
just handy to show people that something is happening, and they should wait
for the results.
Any help appreciated!
Dale. 2 2631
The animation stops because the browser is making a new request. This is
typical browser behavior (at least with IE). The only way around it would be
to use a separate browser window to display the graphic. However, the
separate browser window would not be available to the newly-loaded HTML
document instance in the parent browser. Well, I can think of one other way,
which would involve using a frameset with the GIF loaded into a frame that
expands until the new document is loaded. Since the 2 frames share the same
parent window, the new document could tell the parent to hide the other
frame.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Presuming that God is "only an idea" -
Ideas exist.
Therefore, God exists.
"Dale Reed" <da**@dmbse.co.uk> wrote in message
news:Ob**************@TK2MSFTNGP10.phx.gbl... Hi,
I have a button on an aspx page (I'm using vs2005 with asp2), which when clicked takes a while to do some data processing before it posts back to the screen to display the results.
I therefore created a little animated gif, which, when the button is clicked, I display using javascript in a floating div, the idea being that the animation shows that something is happening until the postback occurs.
The problem is, as soon as the button is clicked, the animation actually stops until the page reloads! I thought I was doing something wrong but I turned it so it was permanently visible, the animation is working fine until the button is clicked, then it stops dead until the page reloads.
Has anyone else had this issue? Is it just ie or will this occur with all browsers, and more importantly is there a way to fix it? I can easily just display some static text (please wait or something) but the animation is just handy to show people that something is happening, and they should wait for the results.
Any help appreciated!
Dale.
I've tried putting it into a seperate html file, then display it in an
iframe on the form, unfortunately that stops too. It works fine in firefox
and netscape, only seems to be ie that stops the animation in its tracks as
soon as you click on the button. I don't really want to use a pop up, for
the reasons you've covered plus most people have these turned off anyway.
Bit of a pain really, it seems to me like it's one of those times when you'd
want an animation to display, ie when you know your page is going to take a
while to reload, so why does ie stop all animated gifs? They are a strange
company sometimes, I'm sure they have their reasons! Looks like it will
need to be a bit of javascript to display a static image for ie and the
animation for everyone else, at least till I see if ie7 has the same issue!!
Thanks anyway, if anyone else has any information it would be appreciated!
Dale.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:O1**************@TK2MSFTNGP11.phx.gbl... The animation stops because the browser is making a new request. This is typical browser behavior (at least with IE). The only way around it would be to use a separate browser window to display the graphic. However, the separate browser window would not be available to the newly-loaded HTML document instance in the parent browser. Well, I can think of one other way, which would involve using a frameset with the GIF loaded into a frame that expands until the new document is loaded. Since the 2 frames share the same parent window, the new document could tell the parent to hide the other frame.
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer
Presuming that God is "only an idea" - Ideas exist. Therefore, God exists.
"Dale Reed" <da**@dmbse.co.uk> wrote in message news:Ob**************@TK2MSFTNGP10.phx.gbl... Hi,
I have a button on an aspx page (I'm using vs2005 with asp2), which when clicked takes a while to do some data processing before it posts back to the screen to display the results.
I therefore created a little animated gif, which, when the button is clicked, I display using javascript in a floating div, the idea being that the animation shows that something is happening until the postback occurs.
The problem is, as soon as the button is clicked, the animation actually stops until the page reloads! I thought I was doing something wrong but I turned it so it was permanently visible, the animation is working fine until the button is clicked, then it stops dead until the page reloads.
Has anyone else had this issue? Is it just ie or will this occur with all browsers, and more importantly is there a way to fix it? I can easily just display some static text (please wait or something) but the animation is just handy to show people that something is happening, and they should wait for the results.
Any help appreciated!
Dale.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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.)...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
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...
|
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...
|
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,...
|
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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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...
| |