Solved

redirect gif animation stops

Posted on 2001-08-06
2
984 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 30 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

840 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