Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 456605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:29:15+00:00 2026-05-12T22:29:15+00:00

My checkout cart displays (1) an animation for Processing Order… after the ‘s been

  • 0

My checkout cart displays (1) an animation for “Processing Order…” after the ‘s been (2) submitted and the card is being processed in a php script. However, there’s a bug triggered when the user has reached the “order accepted” page, and pressed the back button. The “Processing Order…” animation is still displayed.

(1) The processing display is shown like:

<div style="position:absolute;display:none;" id="animation">
    <img src="animation.gif"/>
</div>

(2) When the button is submitted, the javascript used:

onClick="document.getElementById('animation').style.display='block';
         document.the_form.submit();"

So, the button is clicked, the animation displayed, the form submitted, and the card is processed, and the user is on a new page.

When the user clicks back, we should expect a page without the animation. But, onLoad isn’t triggered, and the last state of the animation (displayed) is saved.

Any idea how to remove the animation when the user returns to the page?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T22:29:15+00:00Added an answer on May 12, 2026 at 10:29 pm

    Inspired by Adam A’s comment, you could hide the animation when the user is leaving the page (through form submit is the normal route, I would suspect) so if/when coming back to the page, the animation isn’t shown.

    One way to achieve this is adding the hiding code to HTML body’s onunload event.

    <body onunload="document.getElementById('animation').style.display='none';">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some animation I would like to try, kind of a shopping cart/checkout
I am setting a custom session in the catalog/controller/checkout/cart.php controller. All it does, it
I wanted to know the cart total - shipping in the checkout page.So that
A client has asked me to reduce the complexity of Magento's …/template/checkout/cart/shipping.phtml so that
I'm aware that a product can be added via querystring in Magento. Pattern: /path/to/app/checkout/cart/add?product=[id]&qty=[qty]
I am trying to create a simple program which displays a shopping cart list
Here is my code: <reference name=top.links> <action method=removeLinkByUrl><url>checkout/cart</url></action> </reference> Here how can i get
Is there a way to set all pages (catalog,product,cart,checkout,search) as having a 3-column layout
Magento shopping cart is built on the Zend Framework in PHP. This is the
I'm trying to create a checkout page in PHP. The page that lists the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.