title: Fancybox 2.0.6 close method
body: <p>i have a problem with close method of fancybox v2.0.6</p>
  
  <p>I have in my page this code.</p>
  
  <pre><code>&lt;a href="myurl" class="btnslide" id="Imagemulti" title="Aggiungi immagine"&gt;Aggiungi immagine&lt;/a&gt;
  
  &lt;script type="text/javascript"&gt;
  $(document).ready(function() {
      $("#Imagemulti").fancybox({
          maxWidth: 800,
          maxHeight: 600,
          fitToView: false,
          width: '88%',
          height: '88%',
          autoSize: false,
          closeClick: false,
          openEffect: 'none',
          closeEffect: 'none',
          arrows: false,
          type: 'iframe',
          afterClose: function() {
              $('#imgqueue').load('myurl2')
          }
      });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>When i click on a tag the fancybox popup show mypage, where i have a form; when i submit the form on the popup, i show another form e after, submit it, i will close by this function:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  parent.$.fancybox.close();
  &lt;/script&gt;
  </code></pre>
  
  <p>Note: myurl and myurl2 not are variables but link to my site that i have hidden</p>
  
  <p>And it's ok; but if i click again on a tag the popup show the form but on submit the popup don't close. Why? The code is equal. i Don't understend....</p>
  
  <p>It's a fancybox bug?</p>
  
  <p>Thanks for the answers and sorry for my poor english</p>