title: how can i open another prettyphoto window using a link which is located inside the parent prettyphoto window?
body: <p>I have html table wich is constructed in the server side using AJAX. This html table is shown using prettyphoto, everything is ok until here. But the last collumn of the table is a link which calls a image which should be opened using prettyphoto too, but this link is not working like i expect. It opens the image without the prettyphoto. See the code below :</p>
  
  <p>--> The function which uses AJAX and open the table inside prettyphoto</p>
  
  <p>function myJS(myVar){<br>
      if (window.XMLHttpRequest){<br>
           xmlhttp=new XMLHttpRequest();}<br>
      else{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}<br>
  xmlhttp.onreadystatechange=function(){<br>
  if (xmlhttp.readyState==4 &amp;&amp; xmlhttp.status==200){<br>
  var description = xmlhttp.responseText;<br>
  $.prettyPhoto.open('#inline-1',myVar, description);<br>
  }<br>
  }<br>
  xmlhttp.open("GET","return_form.php?q="+escape(myVar),true);<br>
  xmlhttp.send();<br>
  }  </p>
  
  <p>// Here is the div used by prettyphoto</p>
  
  <p><code>&lt;div id="inline-1" class="hide"&gt;&lt;/div&gt;</code></p>
  
  <p>------> The way a set up prettyphoto</p>
  
  <p>$(document).ready(function(){<br>
  $.fn.prettyPhoto();<br>
  $("a[rel^='prettyPhoto']").prettyPhoto();<br>
  });</p>
  
  <p>--> And the way i am calling prettyphoto again inside the table returned by ajax in parent prettyphoto, which is not working. When i click in the link, It is opened in a normal way without prettyphoto</p>
  
  <p><code>&lt;td&gt;&lt;a href='Habilitacao.jpg' rel='prettyPhoto' title='This is the description'&gt;&lt;img src='nf_logo.jpg' width='30' height='30' alt='This is the title' /&gt;&lt;/a&gt;&lt;/td&gt;</code></p>
  
  <p>Would be good, if the link in the table open the image in a next window and when i click in the previous button of the image opened, it will go back to the first one which i have the table with lots of links.</p>
  
  <p>Or if it is not possible the first option, just open the link in another window using prettyphoto and when i close the image window, i can go back to the table window where there are one link for each row.</p>
  
  <p>Thanks,</p>