title: How to simulate an append callback function?
body: <p>I know that <code>.append()</code> does not have any callback function, but when I try to do this:</p>
  
  <pre><code>$.onShadowboxFinished = function (f) {
  
  var postid = $(f.link).parent().attr("id");
  var loadUrl = "wp-admin/admin-ajax.php?action=mfields_show_post&amp;p=" + postid;
  $('#infos_wrap').load(loadUrl).append();
  alert("loaded! test selector :"+$('a.projectimgs').first().attr("href"));
  
  }
  </code></pre>
  
  <p>I am loading content ( links and images ) into the div <code>#infos_wrap</code>. Once all links and images are loaded, I want to manipulate content ( example : Select the links to add them to the shadowbox cache )</p>
  
  <p>For now, the 4th line is executed before the 3th.</p>
  
  <p>Thanks for your help !</p>
  
  <p>PS : If someone want really to help ( i'd appreciate it ^^ )<br>
  You can check the site : <a href="http://www.tom-portfolio.fr/wp-login.php" rel="nofollow">http://www.tom-portfolio.fr/wp-login.php</a><br>
  login: <strong>visitor</strong><br>
  pass: <strong>visitor</strong><br>
  The javascript file is <strong>portfolio.js</strong><br>
  Use your firebug or GoogleDev tools to view it!<br>
  Thanks a lot !</p>