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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:05:44+00:00 2026-06-10T20:05:44+00:00

jQuery 1.6.4 ColorBox 1.3.19 I open up a colorbox using the following code: $.colorbox({inline:

  • 0

jQuery 1.6.4
ColorBox 1.3.19

I open up a colorbox using the following code:

$.colorbox({inline: true,
            href: '#floatbox',
            innerHeight: '480',
            innerWidth: '530',
            top: '15%'});

Inside of ‘#floatbox’ is a button, which, when clicked, ultimately causes the following 2nd invocation of colorbox:

$.colorbox({html: 'some_valid_html',
            transition: 'none',
            escKey: false,
            overlayClose: false);

What I observe is that the 2nd, HTML content is displayed correctly, but before the call to

$.colorbox.close()

later, the contents of ‘#floatbox’ (the content from the 1st invocation) are flashed on the screen. This is not what I expect. Once the content from the 1st invocation is removed from the screen, I don’t want the user to see it again.

This is the behavior in Chrome/Safari.

I’ve tried several things, including:

1) Forcibly removing ‘#floatbox’ from the DOM before the 2nd call to $.colorbox.

2) Binding the 2nd call to $.colorbox to the link that is clicked in the 1st colorbox content.

3) Manipulating the $.colorbox settings to “undo” the ‘inline’ and ‘href’ properties from the first invocation (although it doesn’t really appear like I should need to do that anyway).

It’s as though ColorBox makes a copy of the DOM node from the 1st invocation and holds onto it.

Here are some questions:

1) Is it possible that the ‘inline’ and ‘href’ settings from the 1st invocation are being remembered somehow?

2) Is there any way to manipulate the current settings of an opened colorbox?

Any other thoughts are appreciated.

Thanks,
Wes

  • 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-06-10T20:05:45+00:00Added an answer on June 10, 2026 at 8:05 pm

    It’s as though ColorBox makes a copy of the DOM node from the 1st invocation and holds onto it.

    ColorBox doesn’t copy that element, it moves the node from it’s original place in the DOM. When you change content, it moves it back.

    1) Is it possible that the ‘inline’ and ‘href’ settings from the 1st invocation are being remembered somehow?

    No, that info is discarded. I’m not sure what is causing you these problems, but I suspect it’s an oversight in the implementation. I would look through your code to make sure you aren’t making accidental calls to colorbox.

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

Sidebar

Related Questions

I'm using Jquery colorbox to implement a popup windows. <script> $(document).ready(function(){ $.colorbox({innerWidth:600px, innerHeight:520px, iframe:true,href:/notice.php});
I am using Colorbox 1.3.6 with jQuery 1.4.2. Somehow the folowing code did not
i am using jQuery colorbox plugin. it is true with asp.net page but not
I'm using Jquery colorbox to implement a popup windows. This pop-up is immediately open
I have a jQuery colorbox opened over top of my webpage (with a <select>
I'm using jQuery ColorBox to display a shopping cart item. When a user enters
First I am using the jQuery colorbox plugin that is working fine so far
I am working on a secure site, https. I am using the colorbox jquery
I am using jquery lightbox plugin colorbox ( http://colorpowered.com/colorbox/ ) and i want to
I'm working on a web application and using the jQuery plug-in Colorbox to pop

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.