This test works, but is there a better way than loading an empty file, to run an async javascript function?
$.ajax({
type: "POST",
url: "empty.dat", // empty file
success: function(){
doSomething(); // function to be run
},
error: function(){
alert("error");
}
});