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.
function phpFunction(funktion, callback){
$.ajax()({
global: false,
url: "./system/functions.php?ajax="+funktion,
success: callback
});
}
and I try to run it with this
phpFunction("getImageUrl()",function(data){
alert(data);
});
But nothing happens, I don't even get an empty alert back.