title: Calling jQuery Function with Javascript Function
body: <p>Having some trouble getting this to work, specifically with $.getJSON(). I want to wrap the getJSON function from jQuery in a Javascript function like so:</p>
  
  <pre><code>function reload_data() {
      $.getJSON("data/source", function(data) {
          $.d = data;
      });
  }
  </code></pre>
  
  <p>But when I call reload_data() it doesn't execute the jQuery function inside. Any ideas?    </p>