title: how to wait for an ajax call to return
body: <p>I'm trying to use JQuery although i'm struggling to successfully wait for a ajax call to succeed before executing further code.  Is there a way to wait for an ajax to call?  I've seen examples but it seems just to wait blindly for x amount of seconds?</p>
  
  <p>Thanks,
  James</p>