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 6200119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:18:33+00:00 2026-05-24T04:18:33+00:00

OVERVIEW: I am using JQuery Colorbox to display a little loading icon when an

  • 0

OVERVIEW: I am using JQuery Colorbox to display a little loading icon when an order is being processed on my website. For a small percentage of users, the color box will not close by itself and just gets stuck. This is the basic concept:

The order page loads a link into the colorbox using:

$(document).ready(function () {
    $("[rel=cbox_order]").colorbox({
        initialWidth: "100",
        initialHeight: "100",
        innerWidth: "300",
        innerHeight: "100",
        iframe: true,
        opacity: 0.75,
        overlayClose: false,
        title: 'Your order is being processed, please wait...',
        onLoad: function () {
            $('body').css({
                overflow: 'hidden'
            });
            $('#cboxClose').remove();
            $('#cboxLoadedContent').css({
                'margin-bottom': '0px',
                'height': '100%'
            });
            $(document).unbind("keydown.cbox_close");
        },
        onComplete: function () {
            $('#cboxLoadingGraphic').show();
            $('#cboxLoadedContent').css({
                'margin-bottom': '0px',
                'height': '100%'
            });
        },
        onClosed: function () {
            $('body').css({
                overflow: 'auto'
            });
        }
    });

    $("[rel=cbox_order]").click(function () {
        $("#colorbox").attr("style", "padding-bottom: 42px; padding-right: 42px; display: inline; width: 600px; height: 468px; top: 456px; left: 602px;");
    });
});

<asp:HyperLink id="lnkConfirm" class="buttonlink" rel="cbox_order" NavigateURL="~/ProcessOrder/ProcessPayment.html" Text="CONFIRM ORDER" runat="server"  />

This basically overrides lots of bits and STOPS the user closing the window whilst the order is being processed. The page that has been loaded into the ColorBox then processes the order and sends confirmation emails ect THEN does:

$(document).ready(function(){
    window.top.location.href = '<%=Session["ProcessOrder_Redirect"].ToString()%>';
    window.parent.$.fn.colorbox.close();
});

The idea is it redirects the parent window to the order confirmation page and then closes the box (just to confirm; this is working 95% of the time).

PROBLEM: This won’t always work and I can’t see why. I can confirm the value in the Session holds a valid URL. I entered an alert(<%=Session["ProcessOrder_Redirect"].ToString()%>); after the colorbox.close() and it appeared (and stayed there) for the users who get stuck with a valid URL. I cannot reproduce this error so I am somewhat stuck.

My only thoughts are that a. The redirect isn’t working (currently awaiting on more info to confirm this) or B. the ColorBox is bugging out and just won’t close.

Anyone able to help me solve this mystery?

EDIT: It seems it is the redirect messing up. Anyone know why that wouldn’t always work.

Thanks

  • 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-24T04:18:35+00:00Added an answer on May 24, 2026 at 4:18 am

    I ended up putting a manual link in place for the user to click if they got stuck. Seems to have sorted it for now but still don’t know what caused the issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using jQuery star rating control found at http://www.fyneworks.com/jquery/star-rating/#tab-Overview . I am using
so I am using the .hover feature of jquery.. but im having a small
I am using this plugin. http://jquery.malsup.com/block/#overview However I would like this blockUI to only
Im using a couple of JSON calls to render data, etc etc. In order
I'm using the Drupal views module to create an overview of nodes. In the
I am using Jquery. I have got below links in my html <a class=load-fragment
I have embarked on a mission to start using jQuery and JavaScript properly. I'm
So, I just got setup using Rails 3, Devise and OmniAuth via https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview .
Overview : With NHibernate I am experimenting with a 3 layered hierarchy using joined
I am using a tab based application that shows a presentModalViewController called overview that

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.