Solved

redirect gif animation stops

Posted on 2001-08-06
2
999 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

623 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