Kod
function edycja() {
var nota = $("nota_wew_nr").value;
advAJAX.get({
url : "index.php",
parameters : {
"funkcja" : "rozliczenie_pojazdow_ajax",
"axn" : "edycja_diet",
"nota" : nota
},
mimeType: 'text/html',
uniqueParameter: "custom_unique_param1",
onInitialization : function() {$('diety_body').innerHTML = '<tr height="40"><td colspan="7" style="font-weight: bold">Pobieranie danych...</td></tr>';},
onSuccess : function(obj) {$('diety_body').innerHTML = obj.responseText;},
onFinalization : function() {update_nota_nr(); update_dane();},
onError : function(obj) { alert("Error: " + obj.status);}
});
$("samochod").style.display = "block";
advAJAX.get({
url : "index.php?funkcja=rozliczenie_pojazdow_ajax&axn=edycja_pojazdow¬a="+nota,
mimeType: 'text/html',
uniqueParameter: "custom_unique_param2",
onInitialization : function() {$('samochod_body').innerHTML = '<tr height="40"><td colspan="9" style="font-weight: bold">Pobieranie danych...</td></tr>';},
onSuccess : function(obj) {$('samochod_body').innerHTML = obj.responseText;},
onFinalization : function() {update_pojazdy(); $('do_druku').disabled=false;},
onError : function(obj) { alert("Error: " + obj.status);}
});
}