473,762 Members | 8,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Animated GIF affected by location.replac e

Al
Hi all...

I have created an aspx page that contains an animated GIF. I am using
javascript and location.replac e to redirect from this page to another aspx
page which takes several seconds to load. When location.replac e is called the
animated GIFs in the first page stop animating.

Is this standard behaviour? If so, is there an easy work around to prevent
this?

Thanks in advance
Nov 18 '05 #1
3 3443
this is normal for IE - threads are stopped during postback in expection of
an unload.

the most common approach is to use poll the server for status, with a meta
refresh or script, so the gif runs during the delay between polls. if you
pre cache the image and use frames, you sometimes an get the image to run,
but not always.

-- bruce (sqlwork.com)

"Al" <Al@discussions .microsoft.com> wrote in message
news:EF******** *************** ***********@mic rosoft.com...
Hi all...

I have created an aspx page that contains an animated GIF. I am using
javascript and location.replac e to redirect from this page to another aspx
page which takes several seconds to load. When location.replac e is called the animated GIFs in the first page stop animating.

Is this standard behaviour? If so, is there an easy work around to prevent
this?

Thanks in advance

Nov 18 '05 #2
I ran into the same problem way back using classic ASP. As soon as you submit
a page, the animated gif stops doing it's stuff.
The simplest solution is to use client sided javascript to preload the image
and reset the source of the image after you submit the form (or
location.replac e):
//preload images when that page loads
var preloadedImg = new Image(32,32);
preloadedImg.sr c = 'images\img.gif ';

//then comes the redirect or form submit or whatever
location.replac e;
document.images['imageTag'].src=preloadedI mg.src;

...:: daniel last ::..
"bruce barker" wrote:
this is normal for IE - threads are stopped during postback in expection of
an unload.

the most common approach is to use poll the server for status, with a meta
refresh or script, so the gif runs during the delay between polls. if you
pre cache the image and use frames, you sometimes an get the image to run,
but not always.

-- bruce (sqlwork.com)

"Al" <Al@discussions .microsoft.com> wrote in message
news:EF******** *************** ***********@mic rosoft.com...
Hi all...

I have created an aspx page that contains an animated GIF. I am using
javascript and location.replac e to redirect from this page to another aspx
page which takes several seconds to load. When location.replac e is called

the
animated GIFs in the first page stop animating.

Is this standard behaviour? If so, is there an easy work around to prevent
this?

Thanks in advance


Nov 18 '05 #3
Al
Thanks - this works perfectly.

"dainel last" wrote:
I ran into the same problem way back using classic ASP. As soon as you submit
a page, the animated gif stops doing it's stuff.
The simplest solution is to use client sided javascript to preload the image
and reset the source of the image after you submit the form (or
location.replac e):
//preload images when that page loads
var preloadedImg = new Image(32,32);
preloadedImg.sr c = 'images\img.gif ';

//then comes the redirect or form submit or whatever
location.replac e;
document.images['imageTag'].src=preloadedI mg.src;

..:: daniel last ::..
"bruce barker" wrote:
this is normal for IE - threads are stopped during postback in expection of
an unload.

the most common approach is to use poll the server for status, with a meta
refresh or script, so the gif runs during the delay between polls. if you
pre cache the image and use frames, you sometimes an get the image to run,
but not always.

-- bruce (sqlwork.com)

"Al" <Al@discussions .microsoft.com> wrote in message
news:EF******** *************** ***********@mic rosoft.com...
Hi all...

I have created an aspx page that contains an animated GIF. I am using
javascript and location.replac e to redirect from this page to another aspx
page which takes several seconds to load. When location.replac e is called

the
animated GIFs in the first page stop animating.

Is this standard behaviour? If so, is there an easy work around to prevent
this?

Thanks in advance


Nov 18 '05 #4

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

Similar topics

2
3620
by: James Marshall | last post by:
I'm trying to override location.replace() but I can't. I can override window.open(), document.write(), and other built-in methods, but not location.replace(). Here's a demo that overrides two built-in methods, then reports on them: location.replace= function (url) { alert(url) } ; alert('location.replace=\n'+location.replace) ; document.write= function (html) { alert(html) } ; alert('document.write=\n'+document.write) ;
3
8719
by: DOK | last post by:
I'm trying to create an eBay ad. So far, I've got the page the way I want it. However, the few animated gif's I have on the page display but are no longer animated. I can get it to work in FrontPage and 'Preview in Browser'. However, When I enter the URL or when I 'select all' html and paste it into the 'add your own html' box in ebay, the gif's don't animate. If anyone would take the time to scan my 'index.htm' and let me know what...
5
7540
by: spam_me_ not | last post by:
I already understand that one cannot disable a browser's forward and back functions. This is a situation where I have code working in Mozilla V1.6 and would like something similar for Opera and IE. I link within a page and display individual divisions of that page, manipulating their visibility and display styles with an onClick function. As long as I explicitly click a link to progress, it works with browsers I've tried.
2
8572
by: JHB | last post by:
Hi, How can I do a location.replace when I use a form, like when I use a href? This works. <a href="Ny HTML-side20.htm"; method="post" id="frm" name="BrugerHovedSide" onsubmit="location.replace(this.href);" > <input class="ok" type="submit" value="Opfrisk data" id=submit1 name=submit1> </a>
9
9718
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 seems to deal with showing the GIF and not saving it. Thanks, John
0
4786
by: PowerPlane | last post by:
Hi, all Happy valentine I am struggling to insert an animated-gif into a CRichEditCtrl. Before I post this question here, I did some googling. And I found an article to introduce how to insert a bitmap into a RichEdit http://www.codeguru.com/richedit/richeditrc.htm I can use a timer/thread to replace my bitmap to show the animation. However, the screen goes blink when there are many animated-gif on it. I guess because when I repace a...
12
2233
by: Jack | last post by:
Since, I have not got some desired advise, I am reposting this for some asnwer/valuable suggestion. Thanks. THE FOLLOWING IS A PART OF CODE FROM A ASP PAGE <% sql01 = "SELECT COUNT(*) AS reccount FROM Equipmenttbl " sql01 = sql01 & "WHERE Equipmenttbl.GrantID = " & GrantID
3
2714
by: larystoy | last post by:
How to get an animated GIF to function in V6 I have an animated dove that was too lazy to flap his wing when flying across the screen. Of course VB6 doesn't see animated GIF's, so got this one figured out by extracting the 15 individual GIF pictures and using the following routine he does fly across as I want him to do. The trick is to save each picture as a "transparent" picture. Option Explicit Private Sub Timer3_Timer() ...
0
9378
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9989
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...
1
9927
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7360
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6640
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
5268
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
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3914
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.