Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

redirect gif animation stops

Posted on 2001-08-06
2
Medium Priority
?
1,006 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 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

721 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