Forse intendi che all'onclick devo fare questo:

boolChiamata = 0;

onclick="function(){ if(boolChiamata==0){ eseguiAjax(); } else{ return false; } }";


può essere corretto?