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 3 3444
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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) ;
|
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...
|
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.
|
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>
|
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
| |
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...
|
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
|
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()
...
|
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...
|
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,...
|
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...
| |
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,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |