title: JQuery Passing a parameter and a callback in a ajax function
body: <p>I have made a php file that takes ajax calls so I can return things from a database. But I have some issues getting the JQuery side to work.</p>
  
  <pre><code>function phpFunction(funktion, callback){
      $.ajax()({
          global: false,
          url: "./system/functions.php?ajax="+funktion,
          success: callback
      });
  }
  </code></pre>
  
  <p>and I try to run it with this</p>
  
  <pre><code>phpFunction("getImageUrl()",function(data){
          alert(data);
      });
  </code></pre>
  
  <p>But nothing happens, I don't even get an empty alert back.</p>