-1
I am editing a file cancellation function, and today it shows only the status "Waiting...", according to the code:
&js<
cancelEvent = "";
$(".ui-overlay").show();
$("#retorno").empty().html("<img src='../loader.gif' width='14' align='absmiddle'> Aguardando...");
$.get("../javascript/Cancela.php#(qs)#",function(data){
$("#retorno").empty().html(data);
if(data == 1) {
processaEvento('#(NF)#','#(DESC)#','#(DT1)#','#(DT2)#','#(OP)#');
} else {
alert("Não foi possível realizar o cancelamento");
document.getElementById("btSalvar").disabled = false;
document.getElementById("btSalvar").value = "Salvar";
}
});
$(".ui-overlay").hide();
>
I want to add a sequence of loading phrases, like "Wait...", "Effecting the cancellation...", "Finalizing the procedure...", for the user can follow the step by step.
Can I only do this with javascript? Or a different suggestion?
What’s that like? It’s an Ajax?
– Sam
could post your full code, please?
– Gabriel Carvalho
I edited with the entire code block.
– Natan Hoffmann