korzystam z biblioteki advAjax i napotkałem w niej na mały problem:
Problem dotyczy poniższej funkcji:
function npCreateMenu(table,id){ advAJAX.post({ url: "php/menu.php", parameters : { "table" : table, "id" : id }, onSuccess : function(obj) { var result = obj.responseText; document.getElementById('jakis_div').innerHTML = result; return 1; },//onSuccess : function(obj) { onError : function(obj) { infoShow('AJAX Error: ' + obj.status); return 1; }//onError : function(obj) { });//advAJAX.post({ }//npCreateMenu(table,id){
Dlaczego funkcja npCreateMenu nie zwraca 1?
np. echo npCreateMenu(x,y);
Dodam że jakis_div jest prawidłowo wypełniany, błędów brak.