title: jQuery.post callback not executing
body: <p>When I make a call with jQuery.post, the callback is not being executed, but only if the call is made in a js file loaded into the webpage. If I copy and paste the same call into the javascript console of the browser, the callback get's executed. I know that the function is being called, because if I replace the call to jQuery.post with a simple alert(), it shows up. I've made sure the post request is completing (data is inserted into db on server side). I've also made sure that it is returning with a 200 code.</p>
  
  <p>Also, this function is being called on demand when I click a button, so the DOM should be fully loaded by then.</p>
  
  <p>Why would this be executed properly from the console, but not from a js file?</p>