title: Jquery ajax external callback function
body: <p>I need to use an external function for my success callback and I don't know how to pass the json object to my function.</p>
  
  <pre><code>$.ajax({
  url:"get_box.php",
  type:"POST",
  data:data,
  dataType:"json",
  success: myFunction(data);  
      });
  </code></pre>
  
  <p>And my function looks this way:</p>
  
  <pre><code>function myFunction(result2){
  ...
  }
  </code></pre>
  
  <p>The error is: undefined result2...</p>