Solved

redirect gif animation stops

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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.

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now