title: When using colorbox jQuery plugin to display two different sets of content, the first set of content is shown when the colorbox is closed
body: <p>jQuery 1.6.4
  ColorBox 1.3.19</p>
  
  <p>I open up a colorbox using the following code:</p>
  
  <pre><code>$.colorbox({inline: true,
              href: '#floatbox',
              innerHeight: '480',
              innerWidth: '530',
              top: '15%'});
  </code></pre>
  
  <p>Inside of '#floatbox' is a button, which, when clicked, ultimately causes the following 2nd invocation of colorbox:</p>
  
  <pre><code>$.colorbox({html: 'some_valid_html',
              transition: 'none',
              escKey: false,
              overlayClose: false);
  </code></pre>
  
  <p>What I observe is that the 2nd, HTML content is displayed correctly, but before the call to </p>
  
  <pre><code>$.colorbox.close()
  </code></pre>
  
  <p>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.</p>
  
  <p>This is the behavior in Chrome/Safari.</p>
  
  <p>I've tried several things, including:</p>
  
  <p>1) Forcibly removing '#floatbox' from the DOM before the 2nd call to $.colorbox.</p>
  
  <p>2) Binding the 2nd call to $.colorbox to the link that is clicked in the 1st colorbox content.</p>
  
  <p>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).</p>
  
  <p>It's as though ColorBox makes a copy of the DOM node from the 1st invocation and holds onto it.</p>
  
  <p>Here are some questions:</p>
  
  <p>1) Is it possible that the 'inline' and 'href' settings from the 1st invocation are being remembered somehow?</p>
  
  <p>2) Is there any way to manipulate the current settings of an opened colorbox?</p>
  
  <p>Any other thoughts are appreciated.</p>
  
  <p>Thanks,
  Wes</p>