title: jQuery Lightbox Evolution: Load lightbox outside a iframe
body: <p>I'm using a jQuery Lightbox Evolution plugin, and I have photo links inside a iframe. I wanna that Lightbox open outside a iframe, in a parent window.</p>
  
  <p>In the FAQ, i find that I can put some code on parent:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    function frameload(iframe) {
      var doc = iframe.contentWindow || iframe.contentDocument;
      if (doc.document) { doc = doc.document; };
  
      $('.lightbox', doc.body).lightbox();
    };
  &lt;/script&gt;
  </code></pre>
  
  <p>But dont work, because my code is generated inline, dynamic with php. So I dont 'initialize' the plugin in head tag, just call that in the code.</p>
  
  <p>There's my piece of code that initialize the plugin:</p>
  
  <pre><code>echo 
  '&lt;a style="cursor:pointer;" id="open_'.$emp_alias.'"&gt;&lt;/a&gt;';
  
  echo 
  '&lt;script type="text/javascript"&gt;
     $(document).ready(function(){
       $("#open_'.$emp_alias.'").click(function(ev) {
          $.lightbox([';
          while($images_array = mysql_fetch_assoc($query_emp_images)) {
       echo '"/destaques/'.$images_array['path'].'",';
      }
      echo
           ']);
      ev.preventDefault();
      });                                       });
  &lt;/script&gt;';
  </code></pre>
  
  <p>There's a way to load this in the parent window?</p>
  
  <p>Thanks</p>