title: passing variable back to parent when fancybox window is closed
body: <p>I was wondering if it is possible to pass back a variable from fancybox child to parent once child is closed?</p>
  <pre><code>function cleanUp(){
      var bla = $(&quot;#fancybox-frame&quot;).contents().find('input[name=pd_id]');
      alert(bla.val());
  }
  $(&quot;#tree .product a[class!=copy]&quot;).fancybox({
      'width'             : 770,
      'height'            : '95%',
      'autoScale'         : false,
      'transitionIn'      : 'none',
      'transitionOut'     : 'none',
      'type'              : 'iframe',
      'onCleanup'         : cleanUp
  }); 
  </code></pre>