Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

redirect gif animation stops

Posted on 2001-08-06
2
Medium Priority
?
1,015 Views
Last Modified: 2013-11-19
When the length of background processing might cause a delay in display
of
a web page, we created an ASP that displays a text message and an
animated
GIF.

The <BODY> tag's OnLoad event points to a JavaScript function WinLoad()
which looks like the following.

function WinLoad()
    {
    parent.location.href =  '<%=sRedirectPage%>';
    document.images["Processing3"].src=document.images
["Processing3"].src;
    }

The variable sRedirectPage is set by another function which parses the
query string.

"Processing3" is the NAME of the animated GIF in an <IMG> tag.

This works in IE 5.5 but in IE 4 and NS 4.7 the animated GIF stops while
waiting for the redirected page to display.

Can anyone help me with this?
0
Comment
Question by:xzhang4
2 Comments
 
LVL 10

Expert Comment

by:dij8
ID: 6357566
You seem to be changing the Processing3 image to the same thing.  What is the point of it?

That aside, this is very similar to clicking an animated anchor tag.  Whether you would call it a bug or a feature is undecided but what is happening I believe is the current page stops processing.  Which includes the processing of animated gifs.  I don't think there is a way around this.

But maybe, just maybe, a solution would be to remove focus:
document.images["Processing3"].blur()
or if that doesn't work then focus on something else:
document.["otherobject"].focus()

0
 
LVL 4

Accepted Solution

by:
ckosloski earned 120 total points
ID: 6360407
You could try using frames.  

I had a similar problem.  We put the animation in the top frame and put the processing in the bottom frame that was 1 pixel with no scrollbars or border.  Then on any page that is redirected to after the "wait" page, you use the following code to break out of the frame.

<script>
//Break out of the frame.
<!--//cloak
if (top.location.href != location.href)
     top.location.href = location.href;
//uncloak -->
</script>
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question