title: jquery script seems to wait when php file is called
body: <p>I am trying to load a div with .load(). When a menu-element is clicked this function is triggered:</p>
  
  <pre><code>function newPage(p_id){
      var id = p_id;
  
      $("#div").load("content.php?id=" + id);
  
      doSomething();
      doAnotherThing();
  }
  </code></pre>
  
  <p>The content.php works fine. But the <code>doSometing()</code>; is not happening. The next time I click a menu-element, the <code>doSomething()</code>; and the <code>doAnotherThing()</code>; are fired and then the function begin from the start and halts again before the <code>doSomething()</code>; Of course I intend to execute the function from the beginning till the end on each click.</p>
  
  <p>Can anybody help?</p>